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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip.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
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_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 Tab* GetTabAt(Tab* tab, const gfx::Point& tab_in_tab_coordinates) override; 232 Tab* GetTabAt(Tab* tab, const gfx::Point& tab_in_tab_coordinates) override;
233 void OnMouseEventInTab(views::View* source, 233 void OnMouseEventInTab(views::View* source,
234 const ui::MouseEvent& event) override; 234 const ui::MouseEvent& event) override;
235 bool ShouldPaintTab( 235 bool ShouldPaintTab(
236 const Tab* tab, 236 const Tab* tab,
237 const base::Callback<gfx::Path(const gfx::Size&)>& border_callback, 237 const base::Callback<gfx::Path(const gfx::Size&)>& border_callback,
238 gfx::Path* clip) override; 238 gfx::Path* clip) override;
239 bool CanPaintThrobberToLayer() const override; 239 bool CanPaintThrobberToLayer() const override;
240 bool IsImmersiveStyle() const override; 240 bool IsImmersiveStyle() const override;
241 SkColor GetToolbarTopSeparatorColor() const override; 241 SkColor GetToolbarTopSeparatorColor() const override;
242 base::string16 GetAccessibleTabName(const Tab* tab) const override;
242 int GetBackgroundResourceId(bool* custom_image) const override; 243 int GetBackgroundResourceId(bool* custom_image) const override;
243 void UpdateTabAccessibilityState(const Tab* tab, 244 void UpdateTabAccessibilityState(const Tab* tab,
244 ui::AXNodeData* node_data) override; 245 ui::AXNodeData* node_data) override;
245 246
246 // MouseWatcherListener overrides: 247 // MouseWatcherListener overrides:
247 void MouseMovedOutOfHost() override; 248 void MouseMovedOutOfHost() override;
248 249
249 // views::View overrides: 250 // views::View overrides:
250 void Layout() override; 251 void Layout() override;
251 void PaintChildren(const ui::PaintContext& context) override; 252 void PaintChildren(const ui::PaintContext& context) override;
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 bool immersive_style_; 654 bool immersive_style_;
654 655
655 // Our observers. 656 // Our observers.
656 typedef base::ObserverList<TabStripObserver> TabStripObservers; 657 typedef base::ObserverList<TabStripObserver> TabStripObservers;
657 TabStripObservers observers_; 658 TabStripObservers observers_;
658 659
659 DISALLOW_COPY_AND_ASSIGN(TabStrip); 660 DISALLOW_COPY_AND_ASSIGN(TabStrip);
660 }; 661 };
661 662
662 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_ 663 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_renderer_data.h ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698