OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // or NULL if there is no tab that contains the specified point. | 69 // or NULL if there is no tab that contains the specified point. |
70 virtual BaseTab* GetTabAt(BaseTab* tab, | 70 virtual BaseTab* GetTabAt(BaseTab* tab, |
71 const gfx::Point& tab_in_tab_coordinates) = 0; | 71 const gfx::Point& tab_in_tab_coordinates) = 0; |
72 | 72 |
73 // Informs that an active tab is selected when already active (ie - clicked | 73 // Informs that an active tab is selected when already active (ie - clicked |
74 // when already active/foreground). | 74 // when already active/foreground). |
75 virtual void ClickActiveTab(const BaseTab* tab) const = 0; | 75 virtual void ClickActiveTab(const BaseTab* tab) const = 0; |
76 | 76 |
77 // Invoked when a mouse event occurs on |source|. | 77 // Invoked when a mouse event occurs on |source|. |
78 virtual void OnMouseEventInTab(views::View* source, | 78 virtual void OnMouseEventInTab(views::View* source, |
79 const views::MouseEvent& event) = 0; | 79 const ui::MouseEvent& event) = 0; |
80 | 80 |
81 // Returns true if |tab| needs to be painted. If false is returned the tab is | 81 // Returns true if |tab| needs to be painted. If false is returned the tab is |
82 // not painted. If true is returned the tab should be painted and |clip| is | 82 // not painted. If true is returned the tab should be painted and |clip| is |
83 // set to the clip (if |clip| is empty means no clip). | 83 // set to the clip (if |clip| is empty means no clip). |
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_ |
OLD | NEW |