OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ |
6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ | 6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // NativeDisplayDelegate overrides: | 42 // NativeDisplayDelegate overrides: |
43 void Initialize() override; | 43 void Initialize() override; |
44 void GrabServer() override; | 44 void GrabServer() override; |
45 void UngrabServer() override; | 45 void UngrabServer() override; |
46 bool TakeDisplayControl() override; | 46 bool TakeDisplayControl() override; |
47 bool RelinquishDisplayControl() override; | 47 bool RelinquishDisplayControl() override; |
48 void SyncWithServer() override; | 48 void SyncWithServer() override; |
49 void SetBackgroundColor(uint32_t color_argb) override; | 49 void SetBackgroundColor(uint32_t color_argb) override; |
50 void ForceDPMSOn() override; | 50 void ForceDPMSOn() override; |
51 std::vector<DisplaySnapshot*> GetDisplays() override; | 51 std::vector<DisplaySnapshot*> GetDisplays() override; |
| 52 void GetDisplays(const GetDisplaysCallback& callback) override; |
52 void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override; | 53 void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override; |
53 bool Configure(const DisplaySnapshot& output, | 54 bool Configure(const DisplaySnapshot& output, |
54 const DisplayMode* mode, | 55 const DisplayMode* mode, |
55 const gfx::Point& origin) override; | 56 const gfx::Point& origin) override; |
56 void Configure(const DisplaySnapshot& output, | 57 void Configure(const DisplaySnapshot& output, |
57 const DisplayMode* mode, | 58 const DisplayMode* mode, |
58 const gfx::Point& origin, | 59 const gfx::Point& origin, |
59 const ConfigureCallback& callback) override; | 60 const ConfigureCallback& callback) override; |
60 void CreateFrameBuffer(const gfx::Size& size) override; | 61 void CreateFrameBuffer(const gfx::Size& size) override; |
61 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; | 62 bool GetHDCPState(const DisplaySnapshot& output, HDCPState* state) override; |
(...skipping 26 matching lines...) Expand all Loading... |
88 | 89 |
89 ActionLogger* log_; // Not owned. | 90 ActionLogger* log_; // Not owned. |
90 | 91 |
91 DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate); | 92 DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate); |
92 }; | 93 }; |
93 | 94 |
94 } // namespace test | 95 } // namespace test |
95 } // namespace ui | 96 } // namespace ui |
96 | 97 |
97 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ | 98 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ |
OLD | NEW |