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

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

Issue 312393002: ozone: Move the factory interfaces into a common target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r278697 Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/content_tests.gypi ('k') | ui/base/cursor/DEPS » ('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/base/cursor/ozone/cursor_factory_ozone.h"
9 #include "ui/events/ozone/event_factory_ozone.h"
10 #include "ui/events/platform/platform_event_source.h" 8 #include "ui/events/platform/platform_event_source.h"
11 #include "ui/gfx/ozone/surface_factory_ozone.h" 9 #include "ui/ozone/public/cursor_factory_ozone.h"
10 #include "ui/ozone/public/event_factory_ozone.h"
11 #include "ui/ozone/public/surface_factory_ozone.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_(0), 16 : widget_(0),
17 bounds_(bounds) { 17 bounds_(bounds) {
18 gfx::SurfaceFactoryOzone* surface_factory = 18 ui::SurfaceFactoryOzone* surface_factory =
19 gfx::SurfaceFactoryOzone::GetInstance(); 19 ui::SurfaceFactoryOzone::GetInstance();
20 widget_ = surface_factory->GetAcceleratedWidget(); 20 widget_ = surface_factory->GetAcceleratedWidget();
21 21
22 ui::PlatformEventSource::GetInstance()->AddPlatformEventDispatcher(this); 22 ui::PlatformEventSource::GetInstance()->AddPlatformEventDispatcher(this);
23 CreateCompositor(GetAcceleratedWidget()); 23 CreateCompositor(GetAcceleratedWidget());
24 } 24 }
25 25
26 WindowTreeHostOzone::~WindowTreeHostOzone() { 26 WindowTreeHostOzone::~WindowTreeHostOzone() {
27 ui::PlatformEventSource::GetInstance()->RemovePlatformEventDispatcher(this); 27 ui::PlatformEventSource::GetInstance()->RemovePlatformEventDispatcher(this);
28 DestroyCompositor(); 28 DestroyCompositor();
29 DestroyDispatcher(); 29 DestroyDispatcher();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 return new WindowTreeHostOzone(bounds); 109 return new WindowTreeHostOzone(bounds);
110 } 110 }
111 111
112 // static 112 // static
113 gfx::Size WindowTreeHost::GetNativeScreenSize() { 113 gfx::Size WindowTreeHost::GetNativeScreenSize() {
114 NOTIMPLEMENTED(); 114 NOTIMPLEMENTED();
115 return gfx::Size(); 115 return gfx::Size();
116 } 116 }
117 117
118 } // namespace aura 118 } // namespace aura
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | ui/base/cursor/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698