OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WAYLAND_WAYLAND_WINDOW_H_ | 5 #ifndef UI_OZONE_PLATFORM_WAYLAND_WAYLAND_WINDOW_H_ |
6 #define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_WINDOW_H_ | 6 #define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_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" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // Set whether this window has pointer focus and should dispatch mouse events. | 36 // Set whether this window has pointer focus and should dispatch mouse events. |
37 void set_pointer_focus(bool focus) { has_pointer_focus_ = focus; } | 37 void set_pointer_focus(bool focus) { has_pointer_focus_ = focus; } |
38 | 38 |
39 // Set whether this window has keyboard focus and should dispatch key events. | 39 // Set whether this window has keyboard focus and should dispatch key events. |
40 void set_keyboard_focus(bool focus) { has_keyboard_focus_ = focus; } | 40 void set_keyboard_focus(bool focus) { has_keyboard_focus_ = focus; } |
41 | 41 |
42 // PlatformWindow | 42 // PlatformWindow |
43 void Show() override; | 43 void Show() override; |
44 void Hide() override; | 44 void Hide() override; |
45 void Close() override; | 45 void Close() override; |
| 46 void PrepareForShutdown() override; |
46 void SetBounds(const gfx::Rect& bounds) override; | 47 void SetBounds(const gfx::Rect& bounds) override; |
47 gfx::Rect GetBounds() override; | 48 gfx::Rect GetBounds() override; |
48 void SetTitle(const base::string16& title) override; | 49 void SetTitle(const base::string16& title) override; |
49 void SetCapture() override; | 50 void SetCapture() override; |
50 void ReleaseCapture() override; | 51 void ReleaseCapture() override; |
51 void ToggleFullscreen() override; | 52 void ToggleFullscreen() override; |
52 void Maximize() override; | 53 void Maximize() override; |
53 void Minimize() override; | 54 void Minimize() override; |
54 void Restore() override; | 55 void Restore() override; |
55 void SetCursor(PlatformCursor cursor) override; | 56 void SetCursor(PlatformCursor cursor) override; |
(...skipping 26 matching lines...) Expand all Loading... |
82 uint32_t pending_configure_serial_; | 83 uint32_t pending_configure_serial_; |
83 bool has_pointer_focus_ = false; | 84 bool has_pointer_focus_ = false; |
84 bool has_keyboard_focus_ = false; | 85 bool has_keyboard_focus_ = false; |
85 | 86 |
86 DISALLOW_COPY_AND_ASSIGN(WaylandWindow); | 87 DISALLOW_COPY_AND_ASSIGN(WaylandWindow); |
87 }; | 88 }; |
88 | 89 |
89 } // namespace ui | 90 } // namespace ui |
90 | 91 |
91 #endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_WINDOW_H_ | 92 #endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_WINDOW_H_ |
OLD | NEW |