| 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_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ |
| 6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ | 6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ |
| 7 | 7 |
| 8 #include "ui/events/platform/platform_event_dispatcher.h" | 8 #include "ui/events/platform/platform_event_dispatcher.h" |
| 9 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| 11 #include "ui/platform_window/platform_window.h" | 11 #include "ui/platform_window/platform_window.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 | 14 |
| 15 class DriSurfaceFactory; |
| 16 |
| 15 class DriWindow : public PlatformWindow, | 17 class DriWindow : public PlatformWindow, |
| 16 public PlatformEventDispatcher { | 18 public PlatformEventDispatcher { |
| 17 public: | 19 public: |
| 18 DriWindow(PlatformWindowDelegate* delegate, | 20 DriWindow(PlatformWindowDelegate* delegate, |
| 19 const gfx::Rect& bounds); | 21 const gfx::Rect& bounds, |
| 22 DriSurfaceFactory* surface_factory); |
| 20 virtual ~DriWindow(); | 23 virtual ~DriWindow(); |
| 21 | 24 |
| 22 // PlatformWindow: | 25 // PlatformWindow: |
| 23 virtual void Show() OVERRIDE; | 26 virtual void Show() OVERRIDE; |
| 24 virtual void Hide() OVERRIDE; | 27 virtual void Hide() OVERRIDE; |
| 25 virtual void Close() OVERRIDE; | 28 virtual void Close() OVERRIDE; |
| 26 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 29 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 27 virtual gfx::Rect GetBounds() OVERRIDE; | 30 virtual gfx::Rect GetBounds() OVERRIDE; |
| 28 virtual void SetCapture() OVERRIDE; | 31 virtual void SetCapture() OVERRIDE; |
| 29 virtual void ReleaseCapture() OVERRIDE; | 32 virtual void ReleaseCapture() OVERRIDE; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 40 PlatformWindowDelegate* delegate_; | 43 PlatformWindowDelegate* delegate_; |
| 41 gfx::Rect bounds_; | 44 gfx::Rect bounds_; |
| 42 gfx::AcceleratedWidget widget_; | 45 gfx::AcceleratedWidget widget_; |
| 43 | 46 |
| 44 DISALLOW_COPY_AND_ASSIGN(DriWindow); | 47 DISALLOW_COPY_AND_ASSIGN(DriWindow); |
| 45 }; | 48 }; |
| 46 | 49 |
| 47 } // namespace ui | 50 } // namespace ui |
| 48 | 51 |
| 49 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ | 52 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ |
| OLD | NEW |