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

Side by Side Diff: ui/aura/window_tree_host_ozone.cc

Issue 403263002: platform-window: Add a PlatformWindowFactory for creating windows. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/window_tree_host_ozone.h ('k') | ui/aura/window_tree_host_win.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "ui/aura/window_tree_host_ozone.h" 5 #include "ui/aura/window_tree_host_ozone.h"
6 6
7 #include "ui/aura/window_event_dispatcher.h" 7 #include "ui/aura/window_event_dispatcher.h"
8 #include "ui/ozone/public/cursor_factory_ozone.h" 8 #include "ui/ozone/public/cursor_factory_ozone.h"
9 #include "ui/ozone/public/event_factory_ozone.h" 9 #include "ui/ozone/public/event_factory_ozone.h"
10 #include "ui/ozone/public/ozone_platform.h" 10 #include "ui/platform_window/platform_window_factory.h"
11 #include "ui/platform_window/platform_window.h" 11 #include "ui/platform_window/types/platform_window.h"
12 12
13 namespace aura { 13 namespace aura {
14 14
15 WindowTreeHostOzone::WindowTreeHostOzone(const gfx::Rect& bounds) 15 WindowTreeHostOzone::WindowTreeHostOzone(const gfx::Rect& bounds)
16 : widget_(gfx::kNullAcceleratedWidget) { 16 : widget_(gfx::kNullAcceleratedWidget),
17 platform_window_ = 17 platform_window_(ui::PlatformWindowFactory::GetInstance()
18 ui::OzonePlatform::GetInstance()->CreatePlatformWindow(this, bounds); 18 ->CreatePlatformWindow(this, bounds)) {
19 } 19 }
20 20
21 WindowTreeHostOzone::~WindowTreeHostOzone() { 21 WindowTreeHostOzone::~WindowTreeHostOzone() {
22 DestroyCompositor(); 22 DestroyCompositor();
23 DestroyDispatcher(); 23 DestroyDispatcher();
24 } 24 }
25 25
26 void WindowTreeHostOzone::OnBoundsChanged(const gfx::Rect& new_bounds) { 26 void WindowTreeHostOzone::OnBoundsChanged(const gfx::Rect& new_bounds) {
27 // TOOD(spang): Should we determine which parts changed? 27 // TOOD(spang): Should we determine which parts changed?
28 OnHostResized(new_bounds.size()); 28 OnHostResized(new_bounds.size());
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 return new WindowTreeHostOzone(bounds); 123 return new WindowTreeHostOzone(bounds);
124 } 124 }
125 125
126 // static 126 // static
127 gfx::Size WindowTreeHost::GetNativeScreenSize() { 127 gfx::Size WindowTreeHost::GetNativeScreenSize() {
128 NOTIMPLEMENTED(); 128 NOTIMPLEMENTED();
129 return gfx::Size(); 129 return gfx::Size();
130 } 130 }
131 131
132 } // namespace aura 132 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_ozone.h ('k') | ui/aura/window_tree_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698