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 #pragma once | 7 #pragma once |
8 | 8 |
9 class BaseTab; | 9 class BaseTab; |
10 class TabStripSelectionModel; | 10 class TabStripSelectionModel; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 // Invoked when a mouse event occurs on |source|. | 78 // Invoked when a mouse event occurs on |source|. |
79 virtual void OnMouseEventInTab(views::View* source, | 79 virtual void OnMouseEventInTab(views::View* source, |
80 const views::MouseEvent& event) = 0; | 80 const views::MouseEvent& event) = 0; |
81 | 81 |
82 // Returns true if |tab| needs to be painted. If false is returned the tab is | 82 // Returns true if |tab| needs to be painted. If false is returned the tab is |
83 // not painted. If true is returned the tab should be painted and |clip| is | 83 // not painted. If true is returned the tab should be painted and |clip| is |
84 // set to the clip (if |clip| is empty means no clip). | 84 // set to the clip (if |clip| is empty means no clip). |
85 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) = 0; | 85 virtual bool ShouldPaintTab(const BaseTab* tab, gfx::Rect* clip) = 0; |
86 | 86 |
| 87 // Returns true if Instant Extended API is enabled. |
| 88 virtual bool IsInstantExtendedAPIEnabled() = 0; |
| 89 |
87 protected: | 90 protected: |
88 virtual ~TabController() {} | 91 virtual ~TabController() {} |
89 }; | 92 }; |
90 | 93 |
91 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ | 94 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ |
OLD | NEW |