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

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

Issue 1261693004: Allow dynamic enabling/disabling of unified desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TEST_DISPLAY_MANAGER_TEST_API_H_ 5 #ifndef ASH_TEST_DISPLAY_MANAGER_TEST_API_H_
6 #define ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ 6 #define ASH_TEST_DISPLAY_MANAGER_TEST_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 namespace test { 28 namespace test {
29 29
30 class DisplayManagerTestApi { 30 class DisplayManagerTestApi {
31 public: 31 public:
32 // Test if moving a mouse to |point_in_screen| warps it to another 32 // Test if moving a mouse to |point_in_screen| warps it to another
33 // display. 33 // display.
34 static bool TestIfMouseWarpsAt(ui::test::EventGenerator& event_generator, 34 static bool TestIfMouseWarpsAt(ui::test::EventGenerator& event_generator,
35 const gfx::Point& point_in_screen); 35 const gfx::Point& point_in_screen);
36 36
37 static void EnableUnifiedDesktopForTest();
38
39 DisplayManagerTestApi(); 37 DisplayManagerTestApi();
40 virtual ~DisplayManagerTestApi(); 38 virtual ~DisplayManagerTestApi();
41 39
42 // Update the display configuration as given in |display_specs|. The format of 40 // Update the display configuration as given in |display_specs|. The format of
43 // |display_spec| is a list of comma separated spec for each displays. Please 41 // |display_spec| is a list of comma separated spec for each displays. Please
44 // refer to the comment in |ash::DisplayInfo::CreateFromSpec| for the format 42 // refer to the comment in |ash::DisplayInfo::CreateFromSpec| for the format
45 // of the display spec. 43 // of the display spec.
46 void UpdateDisplay(const std::string& display_specs); 44 void UpdateDisplay(const std::string& display_specs);
47 45
48 // Set the 1st display as an internal display and returns the display Id for 46 // Set the 1st display as an internal display and returns the display Id for
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 DISALLOW_COPY_AND_ASSIGN(ScopedSetInternalDisplayId); 84 DISALLOW_COPY_AND_ASSIGN(ScopedSetInternalDisplayId);
87 }; 85 };
88 86
89 // Sets the display mode that matches the |resolution| for |display_id|. 87 // Sets the display mode that matches the |resolution| for |display_id|.
90 bool SetDisplayResolution(int64 display_id, const gfx::Size& resolution); 88 bool SetDisplayResolution(int64 display_id, const gfx::Size& resolution);
91 89
92 } // namespace test 90 } // namespace test
93 } // namespace ash 91 } // namespace ash
94 92
95 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_ 93 #endif // ASH_TEST_DISPLAY_MANAGER_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc ('k') | ash/test/display_manager_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698