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

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

Issue 2690443002: cros-md: Remove the non-MD immersive mode code paths (Closed)
Patch Set: rebase & code comments Created 3 years, 10 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 "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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual bool ShouldPaintTab( 106 virtual bool ShouldPaintTab(
107 const Tab* tab, 107 const Tab* tab,
108 const base::Callback<gfx::Path(const gfx::Size&)>& border_callback, 108 const base::Callback<gfx::Path(const gfx::Size&)>& border_callback,
109 gfx::Path* clip) = 0; 109 gfx::Path* clip) = 0;
110 110
111 // Returns true if tab loading throbbers can be painted to a composited layer. 111 // Returns true if tab loading throbbers can be painted to a composited layer.
112 // This can only be done when the TabController can guarantee that nothing 112 // This can only be done when the TabController can guarantee that nothing
113 // in the same window will redraw on top of the the favicon area of any tab. 113 // in the same window will redraw on top of the the favicon area of any tab.
114 virtual bool CanPaintThrobberToLayer() const = 0; 114 virtual bool CanPaintThrobberToLayer() const = 0;
115 115
116 // Returns true if tabs should be painted in the rectangular light-bar style.
117 virtual bool IsImmersiveStyle() const = 0;
118
119 // Returns COLOR_TOOLBAR_TOP_SEPARATOR[,_INACTIVE] depending on the activation 116 // Returns COLOR_TOOLBAR_TOP_SEPARATOR[,_INACTIVE] depending on the activation
120 // state of the window. 117 // state of the window.
121 virtual SkColor GetToolbarTopSeparatorColor() const = 0; 118 virtual SkColor GetToolbarTopSeparatorColor() const = 0;
122 119
123 // Returns the resource ID for the image to use as the tab background. 120 // 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 121 // |custom_image| is an outparam set to true if either the tab or the frame
125 // background images have been customized; see implementation comments. 122 // background images have been customized; see implementation comments.
126 virtual int GetBackgroundResourceId(bool* custom_image) const = 0; 123 virtual int GetBackgroundResourceId(bool* custom_image) const = 0;
127 124
128 // Adds private information to the tab's accessibility state. 125 // Adds private information to the tab's accessibility state.
129 virtual void UpdateTabAccessibilityState(const Tab* tab, 126 virtual void UpdateTabAccessibilityState(const Tab* tab,
130 ui::AXNodeData* node_data) = 0; 127 ui::AXNodeData* node_data) = 0;
131 128
132 // Returns the accessible tab name for this tab. 129 // Returns the accessible tab name for this tab.
133 virtual base::string16 GetAccessibleTabName(const Tab* tab) const = 0; 130 virtual base::string16 GetAccessibleTabName(const Tab* tab) const = 0;
134 131
135 protected: 132 protected:
136 virtual ~TabController() {} 133 virtual ~TabController() {}
137 }; 134 };
138 135
139 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_CONTROLLER_H_ 136 #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_drag_controller_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698