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

Side by Side Diff: ash/common/test/ash_test_impl.h

Issue 2653593004: chromeos: Remove AshTestBase::SupportsMultipleDisplays (Closed)
Patch Set: Created 3 years, 11 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 | « ash/common/test/ash_test.cc ('k') | ash/common/wallpaper/wallpaper_controller_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 ASH_COMMON_TEST_ASH_TEST_IMPL_H_ 5 #ifndef ASH_COMMON_TEST_ASH_TEST_IMPL_H_
6 #define ASH_COMMON_TEST_ASH_TEST_IMPL_H_ 6 #define ASH_COMMON_TEST_ASH_TEST_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 virtual ~AshTestImpl() {} 31 virtual ~AshTestImpl() {}
32 32
33 // Factory function for creating AshTestImpl. Implemention that is used 33 // Factory function for creating AshTestImpl. Implemention that is used
34 // depends upon build dependencies. 34 // depends upon build dependencies.
35 static std::unique_ptr<AshTestImpl> Create(); 35 static std::unique_ptr<AshTestImpl> Create();
36 36
37 // These functions mirror that of AshTest, see it for details. 37 // These functions mirror that of AshTest, see it for details.
38 virtual void SetUp() = 0; 38 virtual void SetUp() = 0;
39 virtual void TearDown() = 0; 39 virtual void TearDown() = 0;
40 virtual bool SupportsMultipleDisplays() const = 0;
41 virtual void UpdateDisplay(const std::string& display_spec) = 0; 40 virtual void UpdateDisplay(const std::string& display_spec) = 0;
42 virtual std::unique_ptr<WindowOwner> CreateTestWindow( 41 virtual std::unique_ptr<WindowOwner> CreateTestWindow(
43 const gfx::Rect& bounds_in_screen, 42 const gfx::Rect& bounds_in_screen,
44 ui::wm::WindowType type, 43 ui::wm::WindowType type,
45 int shell_window_id) = 0; 44 int shell_window_id) = 0;
46 virtual std::unique_ptr<WindowOwner> CreateToplevelTestWindow( 45 virtual std::unique_ptr<WindowOwner> CreateToplevelTestWindow(
47 const gfx::Rect& bounds_in_screen, 46 const gfx::Rect& bounds_in_screen,
48 int shell_window_id) = 0; 47 int shell_window_id) = 0;
49 virtual display::Display GetSecondaryDisplay() = 0; 48 virtual display::Display GetSecondaryDisplay() = 0;
50 virtual bool SetSecondaryDisplayPlacement( 49 virtual bool SetSecondaryDisplayPlacement(
51 display::DisplayPlacement::Position position, 50 display::DisplayPlacement::Position position,
52 int offset) = 0; 51 int offset) = 0;
53 virtual void ConfigureWidgetInitParamsForDisplay( 52 virtual void ConfigureWidgetInitParamsForDisplay(
54 WmWindow* window, 53 WmWindow* window,
55 views::Widget::InitParams* init_params) = 0; 54 views::Widget::InitParams* init_params) = 0;
56 virtual void AddTransientChild(WmWindow* parent, WmWindow* window) = 0; 55 virtual void AddTransientChild(WmWindow* parent, WmWindow* window) = 0;
57 }; 56 };
58 57
59 } // namespace ash 58 } // namespace ash
60 59
61 #endif // ASH_COMMON_TEST_ASH_TEST_IMPL_H_ 60 #endif // ASH_COMMON_TEST_ASH_TEST_IMPL_H_
OLDNEW
« no previous file with comments | « ash/common/test/ash_test.cc ('k') | ash/common/wallpaper/wallpaper_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698