| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |