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

Side by Side Diff: ui/platform_window/stub/stub_window.h

Issue 2013713002: Revert of Finish eliminating PlatformWindowMus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « blimp/engine/app/ui/blimp_window_tree_host.cc ('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/gfx/native_widget_types.h"
12 #include "ui/platform_window/platform_window.h" 11 #include "ui/platform_window/platform_window.h"
13 #include "ui/platform_window/stub/stub_window_export.h" 12 #include "ui/platform_window/stub/stub_window_export.h"
14 13
15 namespace ui { 14 namespace ui {
16 15
17 class STUB_WINDOW_EXPORT StubWindow : NON_EXPORTED_BASE(public PlatformWindow) { 16 class STUB_WINDOW_EXPORT StubWindow : NON_EXPORTED_BASE(public PlatformWindow) {
18 public: 17 public:
19 StubWindow(PlatformWindowDelegate* delegate, 18 explicit StubWindow(PlatformWindowDelegate* delegate);
20 gfx::AcceleratedWidget accelerated_widget);
21 ~StubWindow() override; 19 ~StubWindow() override;
22 20
23 private: 21 private:
24 // PlatformWindow: 22 // PlatformWindow:
25 void Show() override; 23 void Show() override;
26 void Hide() override; 24 void Hide() override;
27 void Close() override; 25 void Close() override;
28 void SetBounds(const gfx::Rect& bounds) override; 26 void SetBounds(const gfx::Rect& bounds) override;
29 gfx::Rect GetBounds() override; 27 gfx::Rect GetBounds() override;
30 void SetTitle(const base::string16& title) override; 28 void SetTitle(const base::string16& title) override;
(...skipping 10 matching lines...) Expand all
41 39
42 PlatformWindowDelegate* delegate_; 40 PlatformWindowDelegate* delegate_;
43 gfx::Rect bounds_; 41 gfx::Rect bounds_;
44 42
45 DISALLOW_COPY_AND_ASSIGN(StubWindow); 43 DISALLOW_COPY_AND_ASSIGN(StubWindow);
46 }; 44 };
47 45
48 } // namespace ui 46 } // namespace ui
49 47
50 #endif // UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_ 48 #endif // UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_
OLDNEW
« no previous file with comments | « blimp/engine/app/ui/blimp_window_tree_host.cc ('k') | ui/platform_window/stub/stub_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698