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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/display/types/display_snapshot.h" | 9 #include "ui/display/types/display_snapshot.h" |
10 #include "ui/events/platform/platform_event_dispatcher.h" | 10 #include "ui/events/platform/platform_event_dispatcher.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 DriWindow(PlatformWindowDelegate* delegate, | 28 DriWindow(PlatformWindowDelegate* delegate, |
29 const gfx::Rect& bounds, | 29 const gfx::Rect& bounds, |
30 DriGpuPlatformSupportHost* sender, | 30 DriGpuPlatformSupportHost* sender, |
31 EventFactoryEvdev* event_factory, | 31 EventFactoryEvdev* event_factory, |
32 DriWindowManager* window_manager, | 32 DriWindowManager* window_manager, |
33 DisplayManager* display_manager); | 33 DisplayManager* display_manager); |
34 ~DriWindow() override; | 34 ~DriWindow() override; |
35 | 35 |
36 void Initialize(); | 36 void Initialize(); |
37 | 37 |
| 38 gfx::AcceleratedWidget GetAcceleratedWidget(); |
| 39 |
38 // PlatformWindow: | 40 // PlatformWindow: |
39 void Show() override; | 41 void Show() override; |
40 void Hide() override; | 42 void Hide() override; |
41 void Close() override; | 43 void Close() override; |
42 void SetBounds(const gfx::Rect& bounds) override; | 44 void SetBounds(const gfx::Rect& bounds) override; |
43 gfx::Rect GetBounds() override; | 45 gfx::Rect GetBounds() override; |
44 void SetCapture() override; | 46 void SetCapture() override; |
45 void ReleaseCapture() override; | 47 void ReleaseCapture() override; |
46 void ToggleFullscreen() override; | 48 void ToggleFullscreen() override; |
47 void Maximize() override; | 49 void Maximize() override; |
(...skipping 19 matching lines...) Expand all Loading... |
67 | 69 |
68 gfx::Rect bounds_; | 70 gfx::Rect bounds_; |
69 gfx::AcceleratedWidget widget_; | 71 gfx::AcceleratedWidget widget_; |
70 | 72 |
71 DISALLOW_COPY_AND_ASSIGN(DriWindow); | 73 DISALLOW_COPY_AND_ASSIGN(DriWindow); |
72 }; | 74 }; |
73 | 75 |
74 } // namespace ui | 76 } // namespace ui |
75 | 77 |
76 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ | 78 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_H_ |
OLD | NEW |