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

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

Issue 2581023002: Add tab status to accessibility labels (Closed)
Patch Set: Return early if invalid tab index Created 3 years, 11 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_renderer_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_renderer_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698