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

Side by Side Diff: ui/platform_window/stub/stub_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
« no previous file with comments | « ui/platform_window/platform_window.h ('k') | ui/platform_window/stub/stub_window.cc » ('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 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_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_ 5 #ifndef UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_
6 #define UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_ 6 #define UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/platform_window/platform_window.h" 11 #include "ui/platform_window/platform_window.h"
12 #include "ui/platform_window/stub/stub_window_export.h" 12 #include "ui/platform_window/stub/stub_window_export.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 class PlatformWindowDelegate; 16 class PlatformWindowDelegate;
17 17
18 class STUB_WINDOW_EXPORT StubWindow : NON_EXPORTED_BASE(public PlatformWindow) { 18 class STUB_WINDOW_EXPORT StubWindow : NON_EXPORTED_BASE(public PlatformWindow) {
19 public: 19 public:
20 StubWindow(PlatformWindowDelegate* delegate, 20 StubWindow(PlatformWindowDelegate* delegate,
21 bool use_default_accelerated_widget = true); 21 bool use_default_accelerated_widget = true);
22 ~StubWindow() override; 22 ~StubWindow() override;
23 23
24 private: 24 private:
25 // PlatformWindow: 25 // PlatformWindow:
26 void Show() override; 26 void Show() override;
27 void Hide() override; 27 void Hide() override;
28 void Close() override; 28 void Close() override;
29 void PrepareForShutdown() override;
29 void SetBounds(const gfx::Rect& bounds) override; 30 void SetBounds(const gfx::Rect& bounds) override;
30 gfx::Rect GetBounds() override; 31 gfx::Rect GetBounds() override;
31 void SetTitle(const base::string16& title) override; 32 void SetTitle(const base::string16& title) override;
32 void SetCapture() override; 33 void SetCapture() override;
33 void ReleaseCapture() override; 34 void ReleaseCapture() override;
34 void ToggleFullscreen() override; 35 void ToggleFullscreen() override;
35 void Maximize() override; 36 void Maximize() override;
36 void Minimize() override; 37 void Minimize() override;
37 void Restore() override; 38 void Restore() override;
38 void SetCursor(PlatformCursor cursor) override; 39 void SetCursor(PlatformCursor cursor) override;
39 void MoveCursorTo(const gfx::Point& location) override; 40 void MoveCursorTo(const gfx::Point& location) override;
40 void ConfineCursorToBounds(const gfx::Rect& bounds) override; 41 void ConfineCursorToBounds(const gfx::Rect& bounds) override;
41 PlatformImeController* GetPlatformImeController() override; 42 PlatformImeController* GetPlatformImeController() override;
42 43
43 PlatformWindowDelegate* delegate_; 44 PlatformWindowDelegate* delegate_;
44 gfx::Rect bounds_; 45 gfx::Rect bounds_;
45 46
46 DISALLOW_COPY_AND_ASSIGN(StubWindow); 47 DISALLOW_COPY_AND_ASSIGN(StubWindow);
47 }; 48 };
48 49
49 } // namespace ui 50 } // namespace ui
50 51
51 #endif // UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_ 52 #endif // UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/platform_window/platform_window.h ('k') | ui/platform_window/stub/stub_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698