| 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_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| 6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <map> | 10 #include <map> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 13 #include "base/event_types.h" | 14 #include "base/event_types.h" |
| 14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
| 16 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 17 #include "ui/display/chromeos/native_display_delegate.h" | 18 #include "ui/display/chromeos/native_display_delegate.h" |
| 18 #include "ui/gfx/geometry/point.h" | 19 #include "ui/gfx/geometry/point.h" |
| 19 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
| 20 | 21 |
| 21 // Forward declarations for Xlib and Xrandr. | 22 // Forward declarations for Xlib and Xrandr. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 NativeDisplayDelegateX11(); | 66 NativeDisplayDelegateX11(); |
| 66 virtual ~NativeDisplayDelegateX11(); | 67 virtual ~NativeDisplayDelegateX11(); |
| 67 | 68 |
| 68 // NativeDisplayDelegate overrides: | 69 // NativeDisplayDelegate overrides: |
| 69 virtual void Initialize() OVERRIDE; | 70 virtual void Initialize() OVERRIDE; |
| 70 virtual void GrabServer() OVERRIDE; | 71 virtual void GrabServer() OVERRIDE; |
| 71 virtual void UngrabServer() OVERRIDE; | 72 virtual void UngrabServer() OVERRIDE; |
| 72 virtual void SyncWithServer() OVERRIDE; | 73 virtual void SyncWithServer() OVERRIDE; |
| 73 virtual void SetBackgroundColor(uint32 color_argb) OVERRIDE; | 74 virtual void SetBackgroundColor(uint32_t color_argb) OVERRIDE; |
| 74 virtual void ForceDPMSOn() OVERRIDE; | 75 virtual void ForceDPMSOn() OVERRIDE; |
| 75 virtual std::vector<DisplaySnapshot*> GetOutputs() OVERRIDE; | 76 virtual std::vector<DisplaySnapshot*> GetOutputs() OVERRIDE; |
| 76 virtual void AddMode(const DisplaySnapshot& output, | 77 virtual void AddMode(const DisplaySnapshot& output, |
| 77 const DisplayMode* mode) OVERRIDE; | 78 const DisplayMode* mode) OVERRIDE; |
| 78 virtual bool Configure(const DisplaySnapshot& output, | 79 virtual bool Configure(const DisplaySnapshot& output, |
| 79 const DisplayMode* mode, | 80 const DisplayMode* mode, |
| 80 const gfx::Point& origin) OVERRIDE; | 81 const gfx::Point& origin) OVERRIDE; |
| 81 virtual void CreateFrameBuffer(const gfx::Size& size) OVERRIDE; | 82 virtual void CreateFrameBuffer(const gfx::Size& size) OVERRIDE; |
| 82 virtual bool GetHDCPState(const DisplaySnapshot& output, | 83 virtual bool GetHDCPState(const DisplaySnapshot& output, |
| 83 HDCPState* state) OVERRIDE; | 84 HDCPState* state) OVERRIDE; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 147 |
| 147 // List of observers waiting for display configuration change events. | 148 // List of observers waiting for display configuration change events. |
| 148 ObserverList<NativeDisplayObserver> observers_; | 149 ObserverList<NativeDisplayObserver> observers_; |
| 149 | 150 |
| 150 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); | 151 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 } // namespace ui | 154 } // namespace ui |
| 154 | 155 |
| 155 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 156 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| OLD | NEW |