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 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "chrome/browser/ui/views/tabs/tab_strip_types.h" | 9 #include "chrome/browser/ui/views/tabs/tab_strip_types.h" |
10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 // Returns the resource ID for the image to use as the tab background. | 123 // Returns the resource ID for the image to use as the tab background. |
124 // |custom_image| is an outparam set to true if either the tab or the frame | 124 // |custom_image| is an outparam set to true if either the tab or the frame |
125 // background images have been customized; see implementation comments. | 125 // background images have been customized; see implementation comments. |
126 virtual int GetBackgroundResourceId(bool* custom_image) const = 0; | 126 virtual int GetBackgroundResourceId(bool* custom_image) const = 0; |
127 | 127 |
128 // Adds private information to the tab's accessibility state. | 128 // Adds private information to the tab's accessibility state. |
129 virtual void UpdateTabAccessibilityState(const Tab* tab, | 129 virtual void UpdateTabAccessibilityState(const Tab* tab, |
130 ui::AXNodeData* node_data) = 0; | 130 ui::AXNodeData* node_data) = 0; |
131 | 131 |
| 132 // Returns the accessible tab name for this tab. |
| 133 virtual base::string16 GetAccessibleTabName(const Tab* tab) const = 0; |
| 134 |
132 protected: | 135 protected: |
133 virtual ~TabController() {} | 136 virtual ~TabController() {} |
134 }; | 137 }; |
135 | 138 |
136 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ | 139 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ |
OLD | NEW |