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

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

Issue 393033006: Added tab notification to accessibility_event_router_views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GetTabCount returns 1 in test class Created 6 years, 5 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_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 "chrome/browser/ui/views/tabs/tab_strip_types.h" 8 #include "chrome/browser/ui/views/tabs/tab_strip_types.h"
9 9
10 class Tab; 10 class Tab;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const ui::MouseEvent& event) = 0; 82 const ui::MouseEvent& event) = 0;
83 83
84 // Returns true if |tab| needs to be painted. If false is returned the tab is 84 // Returns true if |tab| needs to be painted. If false is returned the tab is
85 // not painted. If true is returned the tab should be painted and |clip| is 85 // not painted. If true is returned the tab should be painted and |clip| is
86 // set to the clip (if |clip| is empty means no clip). 86 // set to the clip (if |clip| is empty means no clip).
87 virtual bool ShouldPaintTab(const Tab* tab, gfx::Rect* clip) = 0; 87 virtual bool ShouldPaintTab(const Tab* tab, gfx::Rect* clip) = 0;
88 88
89 // Returns true if tabs painted in the rectangular light-bar style. 89 // Returns true if tabs painted in the rectangular light-bar style.
90 virtual bool IsImmersiveStyle() const = 0; 90 virtual bool IsImmersiveStyle() const = 0;
91 91
92 // Returns the index of the specified tab in the model coordinate system, or
93 // -1 if tab is closing or not valid.
94 virtual int GetModelIndexOfTab(const Tab* tab) const = 0;
sky 2014/07/17 04:06:10 If we can I would like to avoid exposing this stat
evy 2014/07/21 17:54:15 That's a great way to do it! Thanks I wasn't sure
95
96 // Gets the number of Tabs in the tab strip.
97 virtual int GetTabCount() const = 0;
98
92 protected: 99 protected:
93 virtual ~TabController() {} 100 virtual ~TabController() {}
94 }; 101 };
95 102
96 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 103 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698