Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: ui/ozone/platform/wayland/wayland_window.h

Issue 2741533002: Fix AshWindowTreeHost shutdown for Ozone X11. (Closed)
Patch Set: Add to other PlatformWindow implementations. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/ozone/platform/headless/headless_window.cc ('k') | ui/ozone/platform/wayland/wayland_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698