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

Unified Diff: ui/base/resource/material_design/material_design_controller.h

Issue 1164333002: ToolbarView MaterialDesign in ThemeProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/resource/material_design/material_design_controller.h
diff --git a/ui/base/resource/material_design/material_design_controller.h b/ui/base/resource/material_design/material_design_controller.h
index a12ae53e4666bea47417ab55b784d2d386e8f1db..0335a75066105fcb5b597b488aec0ddb568a5e6c 100644
--- a/ui/base/resource/material_design/material_design_controller.h
+++ b/ui/base/resource/material_design/material_design_controller.h
@@ -17,14 +17,15 @@ class MaterialDesignControllerTestAPI;
// Central controller to handle material design modes.
class UI_BASE_EXPORT MaterialDesignController {
public:
- // The different material design modes.
+ // The different material design modes. The order cannot be changed without
+ // updating references as these are used as array indices.
enum class Mode {
+ // Classic, non-material design.
+ NON_MATERIAL = 0,
// Basic material design.
- MATERIAL,
+ MATERIAL = 1,
// Material design targeted at mouse/touch hybrid devices.
- MATERIAL_HYBRID,
- // Classic, non-material design.
- NON_MATERIAL
+ MATERIAL_HYBRID = 2
};
// Get the current Mode that should be used by the system.
« chrome/browser/themes/theme_properties.cc ('K') | « chrome/browser/ui/views/toolbar/toolbar_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698