| 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 CHROMEOS_DISPLAY_NATIVE_DISPLAY_DELEGATE_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ |
| 6 #define CHROMEOS_DISPLAY_NATIVE_DISPLAY_DELEGATE_H_ | 6 #define UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "chromeos/display/output_configurator.h" | 8 #include "ui/display/chromeos/output_configurator.h" |
| 9 #include "ui/display/display_constants.h" | 9 #include "ui/display/display_constants.h" |
| 10 | 10 |
| 11 namespace chromeos { | 11 namespace ui { |
| 12 | 12 |
| 13 class NativeDisplayObserver; | 13 class NativeDisplayObserver; |
| 14 | 14 |
| 15 // Interface for classes that perform display configuration actions on behalf | 15 // Interface for classes that perform display configuration actions on behalf |
| 16 // of OutputConfigurator. | 16 // of OutputConfigurator. |
| 17 // TODO(dnicoara) This interface will eventually be platform independent, | 17 // TODO(dnicoara) This interface will eventually be platform independent, |
| 18 // however it first requires refactoring the datatypes: crbug.com/333413 | 18 // however it first requires refactoring the datatypes: crbug.com/333413 |
| 19 class NativeDisplayDelegate { | 19 class NativeDisplayDelegate { |
| 20 public: | 20 public: |
| 21 virtual ~NativeDisplayDelegate() {} | 21 virtual ~NativeDisplayDelegate() {} |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // Called to set the frame buffer (underlying XRR "screen") size. Has | 60 // Called to set the frame buffer (underlying XRR "screen") size. Has |
| 61 // a side-effect of disabling all CRTCs. | 61 // a side-effect of disabling all CRTCs. |
| 62 virtual void CreateFrameBuffer( | 62 virtual void CreateFrameBuffer( |
| 63 int width, | 63 int width, |
| 64 int height, | 64 int height, |
| 65 const std::vector<OutputConfigurator::OutputSnapshot>& outputs) = 0; | 65 const std::vector<OutputConfigurator::OutputSnapshot>& outputs) = 0; |
| 66 | 66 |
| 67 // Gets HDCP state of output. | 67 // Gets HDCP state of output. |
| 68 virtual bool GetHDCPState(const OutputConfigurator::OutputSnapshot& output, | 68 virtual bool GetHDCPState(const OutputConfigurator::OutputSnapshot& output, |
| 69 ui::HDCPState* state) = 0; | 69 HDCPState* state) = 0; |
| 70 | 70 |
| 71 // Sets HDCP state of output. | 71 // Sets HDCP state of output. |
| 72 virtual bool SetHDCPState(const OutputConfigurator::OutputSnapshot& output, | 72 virtual bool SetHDCPState(const OutputConfigurator::OutputSnapshot& output, |
| 73 ui::HDCPState state) = 0; | 73 HDCPState state) = 0; |
| 74 | 74 |
| 75 virtual void AddObserver(NativeDisplayObserver* observer) = 0; | 75 virtual void AddObserver(NativeDisplayObserver* observer) = 0; |
| 76 | 76 |
| 77 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; | 77 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace chromeos | 80 } // namespace ui |
| 81 | 81 |
| 82 #endif // CHROMEOS_DISPLAY_NATIVE_DISPLAY_DELEGATE_H_ | 82 #endif // UI_DISPLAY_CHROMEOS_NATIVE_DISPLAY_DELEGATE_H_ |
| OLD | NEW |