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

Side by Side Diff: ash/test/ash_md_test_base.h

Issue 2692663002: Gut ash::MaterialDesignController, and remove the about:flags entry. (Closed)
Patch Set: terry review 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 #ifndef ASH_TEST_ASH_MD_TEST_BASE_H_
6 #define ASH_TEST_ASH_MD_TEST_BASE_H_
7
8 #include "ash/common/material_design/material_design_controller.h"
9 #include "ash/common/test/material_design_controller_test_api.h"
10 #include "ash/test/ash_test_base.h"
11
12 namespace ash {
13 namespace test {
14
15 class AshMDTestBase
16 : public AshTestBase,
17 public testing::WithParamInterface<ash::MaterialDesignController::Mode> {
18 public:
19 AshMDTestBase();
20 ~AshMDTestBase() override;
21
22 // AshTestBase:
23 void SetUp() override;
24
25 int GetMdMaximizedWindowHeightOffset();
26 int GetMdAutoHiddenShelfHeightOffset();
27
28 private:
29 // The material design shelf is taller (by 1px) so use this offset to
30 // adjust the expected height of a maximized window.
31 int md_maximized_window_height_offset_ = 0;
32
33 // The material design auto hidden shelf is shorter (by 3) so use this offset
34 // to adjust the display/root window size.
35 int md_auto_hidden_shelf_height_offset_ = 0;
36
37 DISALLOW_COPY_AND_ASSIGN(AshMDTestBase);
38 };
39
40 } // namespace test
41 } // namespace ash
42
43 #endif // ASH_TEST_ASH_MD_TEST_BASE_H_
OLDNEW
« no previous file with comments | « ash/test/BUILD.gn ('k') | ash/test/ash_md_test_base.cc » ('j') | ash/wm/window_state_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698