Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1102)

Side by Side Diff: chrome/browser/ui/views/tabs/tab_controller.h

Issue 10828265: Replace views::LocatedEvent with ui::LocatedEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
7 7
8 class BaseTab; 8 class BaseTab;
9 class TabStripSelectionModel; 9 class TabStripSelectionModel;
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Returns true if the specified Tab is selected. 48 // Returns true if the specified Tab is selected.
49 virtual bool IsTabSelected(const BaseTab* tab) const = 0; 49 virtual bool IsTabSelected(const BaseTab* tab) const = 0;
50 50
51 // Returns true if the specified Tab is pinned. 51 // Returns true if the specified Tab is pinned.
52 virtual bool IsTabPinned(const BaseTab* tab) const = 0; 52 virtual bool IsTabPinned(const BaseTab* tab) const = 0;
53 53
54 // Potentially starts a drag for the specified Tab. 54 // Potentially starts a drag for the specified Tab.
55 virtual void MaybeStartDrag( 55 virtual void MaybeStartDrag(
56 BaseTab* tab, 56 BaseTab* tab,
57 const views::LocatedEvent& event, 57 const ui::LocatedEvent& event,
58 const TabStripSelectionModel& original_selection) = 0; 58 const TabStripSelectionModel& original_selection) = 0;
59 59
60 // Continues dragging a Tab. 60 // Continues dragging a Tab.
61 virtual void ContinueDrag(views::View* view, const gfx::Point& location) = 0; 61 virtual void ContinueDrag(views::View* view, const gfx::Point& location) = 0;
62 62
63 // Ends dragging a Tab. |canceled| is true if the drag was aborted in a way 63 // Ends dragging a Tab. |canceled| is true if the drag was aborted in a way
64 // other than the user releasing the mouse. Returns whether the tab has been 64 // other than the user releasing the mouse. Returns whether the tab has been
65 // destroyed. 65 // destroyed.
66 virtual bool EndDrag(bool canceled) = 0; 66 virtual bool EndDrag(bool canceled) = 0;
67 67
(...skipping 16 matching lines...) Expand all
84 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) = 0; 84 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) = 0;
85 85
86 // Returns true if Instant Extended API is enabled. 86 // Returns true if Instant Extended API is enabled.
87 virtual bool IsInstantExtendedAPIEnabled() = 0; 87 virtual bool IsInstantExtendedAPIEnabled() = 0;
88 88
89 protected: 89 protected:
90 virtual ~TabController() {} 90 virtual ~TabController() {}
91 }; 91 };
92 92
93 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 93 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | chrome/browser/ui/views/tabs/tab_drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698