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

Side by Side Diff: ui/views/linux_ui/linux_ui.h

Issue 2401363005: Remove sundry IsModeMaterial checks. (Closed)
Patch Set: resolve merge conflict Created 4 years, 2 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_strip_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 UI_VIEWS_LINUX_UI_LINUX_UI_H_ 5 #ifndef UI_VIEWS_LINUX_UI_LINUX_UI_H_
6 #define UI_VIEWS_LINUX_UI_LINUX_UI_H_ 6 #define UI_VIEWS_LINUX_UI_LINUX_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 static void SetInstance(LinuxUI* instance); 73 static void SetInstance(LinuxUI* instance);
74 74
75 // Returns a LinuxUI instance for the toolkit used in the user's desktop 75 // Returns a LinuxUI instance for the toolkit used in the user's desktop
76 // environment. 76 // environment.
77 // 77 //
78 // Can return NULL, in case no toolkit has been set. (For example, if we're 78 // Can return NULL, in case no toolkit has been set. (For example, if we're
79 // running with the "--ash" flag.) 79 // running with the "--ash" flag.)
80 static LinuxUI* instance(); 80 static LinuxUI* instance();
81 81
82 virtual void Initialize() = 0; 82 virtual void Initialize() = 0;
83 // TODO(varkha): This should not be necessary once Material Design is on
84 // unconditionally.
85 virtual void MaterialDesignControllerReady() = 0;
86
87 virtual bool GetTint(int id, color_utils::HSL* tint) const = 0; 83 virtual bool GetTint(int id, color_utils::HSL* tint) const = 0;
88 virtual bool GetColor(int id, SkColor* color) const = 0; 84 virtual bool GetColor(int id, SkColor* color) const = 0;
89 85
90 // Returns the preferences that we pass to WebKit. 86 // Returns the preferences that we pass to WebKit.
91 virtual SkColor GetFocusRingColor() const = 0; 87 virtual SkColor GetFocusRingColor() const = 0;
92 virtual SkColor GetThumbActiveColor() const = 0; 88 virtual SkColor GetThumbActiveColor() const = 0;
93 virtual SkColor GetThumbInactiveColor() const = 0; 89 virtual SkColor GetThumbInactiveColor() const = 0;
94 virtual SkColor GetTrackColor() const = 0; 90 virtual SkColor GetTrackColor() const = 0;
95 virtual SkColor GetActiveSelectionBgColor() const = 0; 91 virtual SkColor GetActiveSelectionBgColor() const = 0;
96 virtual SkColor GetActiveSelectionFgColor() const = 0; 92 virtual SkColor GetActiveSelectionFgColor() const = 0;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // recalculated. 156 // recalculated.
161 virtual void UpdateDeviceScaleFactor(float device_scale_factor) = 0; 157 virtual void UpdateDeviceScaleFactor(float device_scale_factor) = 0;
162 158
163 // Determines the device scale factor of the primary screen. 159 // Determines the device scale factor of the primary screen.
164 virtual float GetDeviceScaleFactor() const = 0; 160 virtual float GetDeviceScaleFactor() const = 0;
165 }; 161 };
166 162
167 } // namespace views 163 } // namespace views
168 164
169 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_ 165 #endif // UI_VIEWS_LINUX_UI_LINUX_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698