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_NATIVE_DISPLAY_DELEGATE_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ |
6 #define UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ | 6 #define UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "ui/display/display_constants.h" | 12 #include "ui/display/display_constants.h" |
11 #include "ui/display/display_export.h" | 13 #include "ui/display/display_export.h" |
12 | 14 |
13 namespace gfx { | 15 namespace gfx { |
14 class Point; | 16 class Point; |
15 class Size; | 17 class Size; |
16 } | 18 } |
17 | 19 |
(...skipping 15 matching lines...) Expand all Loading... |
33 // by a call to UngrabServer(). | 35 // by a call to UngrabServer(). |
34 virtual void GrabServer() = 0; | 36 virtual void GrabServer() = 0; |
35 | 37 |
36 // Released the display server and any resources allocated by GrabServer(). | 38 // Released the display server and any resources allocated by GrabServer(). |
37 virtual void UngrabServer() = 0; | 39 virtual void UngrabServer() = 0; |
38 | 40 |
39 // Flushes all pending requests and waits for replies. | 41 // Flushes all pending requests and waits for replies. |
40 virtual void SyncWithServer() = 0; | 42 virtual void SyncWithServer() = 0; |
41 | 43 |
42 // Sets the window's background color to |color_argb|. | 44 // Sets the window's background color to |color_argb|. |
43 virtual void SetBackgroundColor(uint32 color_argb) = 0; | 45 virtual void SetBackgroundColor(uint32_t color_argb) = 0; |
44 | 46 |
45 // Enables DPMS and forces it to the "on" state. | 47 // Enables DPMS and forces it to the "on" state. |
46 virtual void ForceDPMSOn() = 0; | 48 virtual void ForceDPMSOn() = 0; |
47 | 49 |
48 // Returns information about the current outputs. This method may block for | 50 // Returns information about the current outputs. This method may block for |
49 // 60 milliseconds or more. | 51 // 60 milliseconds or more. |
50 // NativeDisplayDelegate maintains ownership of the ui::DisplaySnapshot | 52 // NativeDisplayDelegate maintains ownership of the ui::DisplaySnapshot |
51 // pointers. | 53 // pointers. |
52 virtual std::vector<ui::DisplaySnapshot*> GetOutputs() = 0; | 54 virtual std::vector<ui::DisplaySnapshot*> GetOutputs() = 0; |
53 | 55 |
(...skipping 30 matching lines...) Expand all Loading... |
84 ui::ColorCalibrationProfile new_profile) = 0; | 86 ui::ColorCalibrationProfile new_profile) = 0; |
85 | 87 |
86 virtual void AddObserver(NativeDisplayObserver* observer) = 0; | 88 virtual void AddObserver(NativeDisplayObserver* observer) = 0; |
87 | 89 |
88 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; | 90 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; |
89 }; | 91 }; |
90 | 92 |
91 } // namespace ui | 93 } // namespace ui |
92 | 94 |
93 #endif // UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ | 95 #endif // UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ |
OLD | NEW |