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

Side by Side Diff: ash/common/test/material_design_controller_test_api.cc

Issue 2692663002: Gut ash::MaterialDesignController, and remove the about:flags entry. (Closed)
Patch Set: 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ash/common/test/material_design_controller_test_api.h"
6
7 namespace ash {
8 namespace test {
9
10 MaterialDesignControllerTestAPI::MaterialDesignControllerTestAPI(
11 MaterialDesignController::Mode mode)
12 : previous_mode_(MaterialDesignController::mode()) {
13 MaterialDesignController::SetMode(mode);
14 }
15
16 MaterialDesignControllerTestAPI::~MaterialDesignControllerTestAPI() {
17 MaterialDesignController::SetMode(previous_mode_);
18 }
19
20 // static
21 bool MaterialDesignControllerTestAPI::IsMaterial() {
22 return MaterialDesignController::IsMaterial();
23 }
24
25 // static
26 bool MaterialDesignControllerTestAPI::IsMaterialNormal() {
27 return MaterialDesignController::IsMaterialNormal();
28 }
29
30 // static
31 bool MaterialDesignControllerTestAPI::IsMaterialExperimental() {
32 return MaterialDesignController::IsMaterialExperimental();
33 }
34
35 // static
36 MaterialDesignController::Mode MaterialDesignControllerTestAPI::DefaultMode() {
37 return MaterialDesignController::DefaultMode();
38 }
39
40 // static
41 void MaterialDesignControllerTestAPI::Uninitialize() {
42 MaterialDesignController::Uninitialize();
43 }
44
45 } // namespace test
46 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698