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

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

Issue 2084583004: Fix tab coloring bugs with multiple open profiles which used different colors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_strip.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 "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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Returns true if |tab| needs to be painted. If false is returned the tab is 91 // Returns true if |tab| needs to be painted. If false is returned the tab is
92 // not painted. If true is returned the tab should be painted and |clip| is 92 // not painted. If true is returned the tab should be painted and |clip| is
93 // set to the clip (if |clip| is empty means no clip). 93 // set to the clip (if |clip| is empty means no clip).
94 virtual bool ShouldPaintTab(const Tab* tab, gfx::Rect* clip) = 0; 94 virtual bool ShouldPaintTab(const Tab* tab, gfx::Rect* clip) = 0;
95 95
96 // Returns true if tab loading throbbers can be painted to a composited layer. 96 // Returns true if tab loading throbbers can be painted to a composited layer.
97 // This can only be done when the TabController can guarantee that nothing 97 // This can only be done when the TabController can guarantee that nothing
98 // in the same window will redraw on top of the the favicon area of any tab. 98 // in the same window will redraw on top of the the favicon area of any tab.
99 virtual bool CanPaintThrobberToLayer() const = 0; 99 virtual bool CanPaintThrobberToLayer() const = 0;
100 100
101 // Returns true if the tabs are in an incognito window. This is used in
102 // determining which theme may have applied to them, so this determination
103 // should match the one in ThemeService::GetThemeProviderForProfile().
104 virtual bool IsIncognito() const = 0;
105
106 // Returns true if tabs should be painted in the rectangular light-bar style. 101 // Returns true if tabs should be painted in the rectangular light-bar style.
107 virtual bool IsImmersiveStyle() const = 0; 102 virtual bool IsImmersiveStyle() const = 0;
108 103
109 // Returns COLOR_TOOLBAR_TOP_SEPARATOR[,_INACTIVE] depending on the activation 104 // Returns COLOR_TOOLBAR_TOP_SEPARATOR[,_INACTIVE] depending on the activation
110 // state of the window. 105 // state of the window.
111 virtual SkColor GetToolbarTopSeparatorColor() const = 0; 106 virtual SkColor GetToolbarTopSeparatorColor() const = 0;
112 107
113 // Returns the resource ID for the image to use as the tab background. 108 // Returns the resource ID for the image to use as the tab background.
114 // |custom_image| is an outparam set to true if either the tab or the frame 109 // |custom_image| is an outparam set to true if either the tab or the frame
115 // background images have been customized; see implementation comments. 110 // background images have been customized; see implementation comments.
116 virtual int GetBackgroundResourceId(bool* custom_image) const = 0; 111 virtual int GetBackgroundResourceId(bool* custom_image) const = 0;
117 112
118 // Adds private information to the tab's accessibility state. 113 // Adds private information to the tab's accessibility state.
119 virtual void UpdateTabAccessibilityState(const Tab* tab, 114 virtual void UpdateTabAccessibilityState(const Tab* tab,
120 ui::AXViewState* state) = 0; 115 ui::AXViewState* state) = 0;
121 116
122 protected: 117 protected:
123 virtual ~TabController() {} 118 virtual ~TabController() {}
124 }; 119 };
125 120
126 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 121 #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_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698