| 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_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_ | 6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
| 9 #include "ui/gfx/geometry/point.h" | 9 #include "ui/gfx/geometry/point.h" |
| 10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
| 11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
| 12 #include "ui/ozone/ozone_export.h" |
| 12 #include "ui/ozone/platform/dri/display_change_observer.h" | 13 #include "ui/ozone/platform/dri/display_change_observer.h" |
| 13 #include "ui/ozone/platform/dri/dri_window_delegate.h" | 14 #include "ui/ozone/platform/dri/dri_window_delegate.h" |
| 14 | 15 |
| 15 namespace ui { | 16 namespace ui { |
| 16 | 17 |
| 17 class DriBuffer; | 18 class DriBuffer; |
| 18 class DriWindowDelegateManager; | 19 class DriWindowDelegateManager; |
| 19 class DriWrapper; | 20 class DriWrapper; |
| 20 class HardwareDisplayController; | 21 class HardwareDisplayController; |
| 21 class ScreenManager; | 22 class ScreenManager; |
| 22 | 23 |
| 23 class DriWindowDelegateImpl : public DriWindowDelegate, | 24 class OZONE_EXPORT DriWindowDelegateImpl : public DriWindowDelegate, |
| 24 public DisplayChangeObserver { | 25 public DisplayChangeObserver { |
| 25 public: | 26 public: |
| 26 DriWindowDelegateImpl(gfx::AcceleratedWidget widget, | 27 DriWindowDelegateImpl(gfx::AcceleratedWidget widget, |
| 27 DriWrapper* drm, | 28 DriWrapper* drm, |
| 28 DriWindowDelegateManager* window_manager, | 29 DriWindowDelegateManager* window_manager, |
| 29 ScreenManager* screen_manager); | 30 ScreenManager* screen_manager); |
| 30 ~DriWindowDelegateImpl() override; | 31 ~DriWindowDelegateImpl() override; |
| 31 | 32 |
| 32 // DriWindowDelegate: | 33 // DriWindowDelegate: |
| 33 void Initialize() override; | 34 void Initialize() override; |
| 34 void Shutdown() override; | 35 void Shutdown() override; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 gfx::Point cursor_location_; | 76 gfx::Point cursor_location_; |
| 76 int cursor_frame_; | 77 int cursor_frame_; |
| 77 int cursor_frame_delay_ms_; | 78 int cursor_frame_delay_ms_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateImpl); | 80 DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateImpl); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace ui | 83 } // namespace ui |
| 83 | 84 |
| 84 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_ | 85 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_ |
| OLD | NEW |