| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "ui/display/display_constants.h" | 12 #include "ui/display/display_constants.h" |
| 13 #include "ui/display/display_export.h" | 13 #include "ui/display/display_export.h" |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 class Point; | 16 class Point; |
| 17 class Size; | 17 class Size; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace ui { | 20 namespace ui { |
| 21 class DisplayMode; | 21 class DisplayMode; |
| 22 class DisplaySnapshot; | 22 class DisplaySnapshot; |
| 23 | 23 |
| 24 class NativeDisplayObserver; | 24 class NativeDisplayObserver; |
| 25 | 25 |
| 26 // Interface for classes that perform display configuration actions on behalf | 26 // Interface for classes that perform display configuration actions on behalf |
| 27 // of OutputConfigurator. | 27 // of DisplayConfigurator. |
| 28 class DISPLAY_EXPORT NativeDisplayDelegate { | 28 class DISPLAY_EXPORT NativeDisplayDelegate { |
| 29 public: | 29 public: |
| 30 virtual ~NativeDisplayDelegate() {} | 30 virtual ~NativeDisplayDelegate() {} |
| 31 | 31 |
| 32 virtual void Initialize() = 0; | 32 virtual void Initialize() = 0; |
| 33 | 33 |
| 34 // Grabs and refreshes any display server related resources. Must be balanced | 34 // Grabs and refreshes any display server related resources. Must be balanced |
| 35 // by a call to UngrabServer(). | 35 // by a call to UngrabServer(). |
| 36 virtual void GrabServer() = 0; | 36 virtual void GrabServer() = 0; |
| 37 | 37 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 ui::ColorCalibrationProfile new_profile) = 0; | 86 ui::ColorCalibrationProfile new_profile) = 0; |
| 87 | 87 |
| 88 virtual void AddObserver(NativeDisplayObserver* observer) = 0; | 88 virtual void AddObserver(NativeDisplayObserver* observer) = 0; |
| 89 | 89 |
| 90 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; | 90 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace ui | 93 } // namespace ui |
| 94 | 94 |
| 95 #endif // UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ | 95 #endif // UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ |
| OLD | NEW |