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

Side by Side Diff: ui/ozone/platform/cast/platform_window_cast.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
« no previous file with comments | « ash/host/ash_window_tree_host_platform.cc ('k') | ui/ozone/platform/drm/host/drm_window_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CAST_PLATFORM_WINDOW_CAST_H_ 5 #ifndef UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_
6 #define UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ 6 #define UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/events/platform/platform_event_dispatcher.h" 9 #include "ui/events/platform/platform_event_dispatcher.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 10 matching lines...) Expand all
21 PlatformWindowCast(PlatformWindowDelegate* delegate, const gfx::Rect& bounds); 21 PlatformWindowCast(PlatformWindowDelegate* delegate, const gfx::Rect& bounds);
22 ~PlatformWindowCast() override; 22 ~PlatformWindowCast() override;
23 23
24 // PlatformWindow implementation: 24 // PlatformWindow implementation:
25 gfx::Rect GetBounds() override; 25 gfx::Rect GetBounds() override;
26 void SetBounds(const gfx::Rect& bounds) override; 26 void SetBounds(const gfx::Rect& bounds) override;
27 void SetTitle(const base::string16& title) override; 27 void SetTitle(const base::string16& title) override;
28 void Show() override {} 28 void Show() override {}
29 void Hide() override {} 29 void Hide() override {}
30 void Close() override {} 30 void Close() override {}
31 void PrepareForShutdown() override {}
31 void SetCapture() override {} 32 void SetCapture() override {}
32 void ReleaseCapture() override {} 33 void ReleaseCapture() override {}
33 void ToggleFullscreen() override {} 34 void ToggleFullscreen() override {}
34 void Maximize() override {} 35 void Maximize() override {}
35 void Minimize() override {} 36 void Minimize() override {}
36 void Restore() override {} 37 void Restore() override {}
37 void SetCursor(PlatformCursor cursor) override {} 38 void SetCursor(PlatformCursor cursor) override {}
38 void MoveCursorTo(const gfx::Point& location) override {} 39 void MoveCursorTo(const gfx::Point& location) override {}
39 void ConfineCursorToBounds(const gfx::Rect& bounds) override {} 40 void ConfineCursorToBounds(const gfx::Rect& bounds) override {}
40 PlatformImeController* GetPlatformImeController() override; 41 PlatformImeController* GetPlatformImeController() override;
41 42
42 // PlatformEventDispatcher implementation: 43 // PlatformEventDispatcher implementation:
43 bool CanDispatchEvent(const PlatformEvent& event) override; 44 bool CanDispatchEvent(const PlatformEvent& event) override;
44 uint32_t DispatchEvent(const PlatformEvent& event) override; 45 uint32_t DispatchEvent(const PlatformEvent& event) override;
45 46
46 private: 47 private:
47 PlatformWindowDelegate* delegate_; 48 PlatformWindowDelegate* delegate_;
48 gfx::Rect bounds_; 49 gfx::Rect bounds_;
49 gfx::AcceleratedWidget widget_; 50 gfx::AcceleratedWidget widget_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(PlatformWindowCast); 52 DISALLOW_COPY_AND_ASSIGN(PlatformWindowCast);
52 }; 53 };
53 54
54 } // namespace ui 55 } // namespace ui
55 56
56 #endif // UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_ 57 #endif // UI_OZONE_PLATFORM_CAST_PLATFORM_WINDOW_CAST_H_
OLDNEW
« no previous file with comments | « ash/host/ash_window_tree_host_platform.cc ('k') | ui/ozone/platform/drm/host/drm_window_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698