| 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_X11_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| 6 #define CHROMEOS_DISPLAY_NATIVE_DISPLAY_DELEGATE_X11_H_ | 6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chromeos/display/native_display_delegate.h" | 12 #include "ui/display/chromeos/native_display_delegate.h" |
| 13 | 13 |
| 14 typedef XID Window; | 14 typedef XID Window; |
| 15 | 15 |
| 16 struct _XDisplay; | 16 struct _XDisplay; |
| 17 typedef struct _XDisplay Display; | 17 typedef struct _XDisplay Display; |
| 18 struct _XRROutputInfo; | 18 struct _XRROutputInfo; |
| 19 typedef _XRROutputInfo XRROutputInfo; | 19 typedef _XRROutputInfo XRROutputInfo; |
| 20 struct _XRRScreenResources; | 20 struct _XRRScreenResources; |
| 21 typedef _XRRScreenResources XRRScreenResources; | 21 typedef _XRRScreenResources XRRScreenResources; |
| 22 | 22 |
| 23 namespace chromeos { | 23 namespace ui { |
| 24 | 24 |
| 25 class NativeDisplayEventDispatcherX11; | 25 class NativeDisplayEventDispatcherX11; |
| 26 | 26 |
| 27 class NativeDisplayDelegateX11 : public NativeDisplayDelegate { | 27 class NativeDisplayDelegateX11 : public NativeDisplayDelegate { |
| 28 public: | 28 public: |
| 29 // Helper class that allows NativeDisplayEventDispatcherX11 and | 29 // Helper class that allows NativeDisplayEventDispatcherX11 and |
| 30 // NativeDisplayDelegateX11::MessagePumpObserverX11 to interact with this | 30 // NativeDisplayDelegateX11::MessagePumpObserverX11 to interact with this |
| 31 // class or with mocks in tests. | 31 // class or with mocks in tests. |
| 32 class HelperDelegate { | 32 class HelperDelegate { |
| 33 public: | 33 public: |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 // Processes X11 display events that have no X11 window associated with it. | 122 // Processes X11 display events that have no X11 window associated with it. |
| 123 scoped_ptr<MessagePumpObserverX11> message_pump_observer_; | 123 scoped_ptr<MessagePumpObserverX11> message_pump_observer_; |
| 124 | 124 |
| 125 // List of observers waiting for display configuration change events. | 125 // List of observers waiting for display configuration change events. |
| 126 ObserverList<NativeDisplayObserver> observers_; | 126 ObserverList<NativeDisplayObserver> observers_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); | 128 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace chromeos | 131 } // namespace ui |
| 132 | 132 |
| 133 #endif // CHROMEOS_DISPLAY_NATIVE_DISPLAY_DELEGATE_X11_H_ | 133 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| OLD | NEW |