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

Side by Side Diff: ui/display/test/display_manager_test_api.h

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. 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 | « ui/display/screen_unittest.cc ('k') | ui/display/test/display_manager_test_api.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 (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 UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_ 5 #ifndef UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_
6 #define UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_ 6 #define UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 30 matching lines...) Expand all
41 // Set the 1st display as an internal display and returns the display Id for 41 // Set the 1st display as an internal display and returns the display Id for
42 // the internal display. 42 // the internal display.
43 int64_t SetFirstDisplayAsInternalDisplay(); 43 int64_t SetFirstDisplayAsInternalDisplay();
44 44
45 // Don't update the display when the root window's size was changed. 45 // Don't update the display when the root window's size was changed.
46 void DisableChangeDisplayUponHostResize(); 46 void DisableChangeDisplayUponHostResize();
47 47
48 // Sets the available color profiles for |display_id|. 48 // Sets the available color profiles for |display_id|.
49 void SetAvailableColorProfiles( 49 void SetAvailableColorProfiles(
50 int64_t display_id, 50 int64_t display_id,
51 const std::vector<ui::ColorCalibrationProfile>& profiles); 51 const std::vector<ColorCalibrationProfile>& profiles);
52 52
53 // Gets the internal ManagedDisplayInfo for a specific display id. 53 // Gets the internal ManagedDisplayInfo for a specific display id.
54 const ManagedDisplayInfo& GetInternalManagedDisplayInfo(int64_t display_id); 54 const ManagedDisplayInfo& GetInternalManagedDisplayInfo(int64_t display_id);
55 55
56 // Sets the UI scale for the |display_id|. Returns false if the 56 // Sets the UI scale for the |display_id|. Returns false if the
57 // display_id is not an internal display. 57 // display_id is not an internal display.
58 bool SetDisplayUIScale(int64_t display_id, float scale); 58 bool SetDisplayUIScale(int64_t display_id, float scale);
59 59
60 // Sets the touch support for |display_id|. 60 // Sets the touch support for |display_id|.
61 void SetTouchSupport(int64_t display_id, 61 void SetTouchSupport(int64_t display_id, Display::TouchSupport touch_support);
62 display::Display::TouchSupport touch_support);
63 62
64 private: 63 private:
65 friend class ScopedSetInternalDisplayId; 64 friend class ScopedSetInternalDisplayId;
66 // Sets the display id for internal display and 65 // Sets the display id for internal display and
67 // update the display mode list if necessary. 66 // update the display mode list if necessary.
68 void SetInternalDisplayId(int64_t id); 67 void SetInternalDisplayId(int64_t id);
69 68
70 DisplayManager* display_manager_; // not owned 69 DisplayManager* display_manager_; // not owned
71 70
72 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi); 71 DISALLOW_COPY_AND_ASSIGN(DisplayManagerTestApi);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 int offset); 105 int offset);
107 106
108 // Creates the DisplayIdList from ints. 107 // Creates the DisplayIdList from ints.
109 DISPLAY_EXPORT DisplayIdList CreateDisplayIdList2(int64_t id1, int64_t id2); 108 DISPLAY_EXPORT DisplayIdList CreateDisplayIdList2(int64_t id1, int64_t id2);
110 DISPLAY_EXPORT DisplayIdList CreateDisplayIdListN(size_t count, ...); 109 DISPLAY_EXPORT DisplayIdList CreateDisplayIdListN(size_t count, ...);
111 110
112 } // namespace test 111 } // namespace test
113 } // namespace display 112 } // namespace display
114 113
115 #endif // UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_ 114 #endif // UI_DISPLAY_TEST_DISPLAY_MANAGER_TEST_API_H_
OLDNEW
« no previous file with comments | « ui/display/screen_unittest.cc ('k') | ui/display/test/display_manager_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698