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

Side by Side Diff: mojo/examples/aura_demo/demo_context_factory.h

Issue 126513004: Rename RootWindowHost to WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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 | « mojo/examples/aura_demo/aura_demo.cc ('k') | mojo/examples/aura_demo/demo_context_factory.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 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 #ifndef MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ 5 #ifndef MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_
6 #define MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ 6 #define MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_
7 7
8 #include "ui/compositor/compositor.h" 8 #include "ui/compositor/compositor.h"
9 9
10 namespace webkit { 10 namespace webkit {
11 namespace gpu { 11 namespace gpu {
12 class ContextProviderInProcess; 12 class ContextProviderInProcess;
13 } 13 }
14 } 14 }
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace examples { 17 namespace examples {
18 18
19 class RootWindowHostMojo; 19 class WindowTreeHostMojo;
20 20
21 // The default factory that creates in-process contexts. 21 // The default factory that creates in-process contexts.
22 class DemoContextFactory : public ui::ContextFactory { 22 class DemoContextFactory : public ui::ContextFactory {
23 public: 23 public:
24 explicit DemoContextFactory(RootWindowHostMojo* rwhm); 24 explicit DemoContextFactory(WindowTreeHostMojo* rwhm);
25 virtual ~DemoContextFactory(); 25 virtual ~DemoContextFactory();
26 26
27 // ContextFactory implementation 27 // ContextFactory implementation
28 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 28 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
29 ui::Compositor* compositor, bool software_fallback) OVERRIDE; 29 ui::Compositor* compositor, bool software_fallback) OVERRIDE;
30 30
31 virtual scoped_refptr<ui::Reflector> CreateReflector( 31 virtual scoped_refptr<ui::Reflector> CreateReflector(
32 ui::Compositor* compositor, 32 ui::Compositor* compositor,
33 ui::Layer* layer) OVERRIDE; 33 ui::Layer* layer) OVERRIDE;
34 virtual void RemoveReflector(scoped_refptr<ui::Reflector> reflector) OVERRIDE; 34 virtual void RemoveReflector(scoped_refptr<ui::Reflector> reflector) OVERRIDE;
35 35
36 virtual scoped_refptr<cc::ContextProvider> 36 virtual scoped_refptr<cc::ContextProvider>
37 OffscreenCompositorContextProvider() OVERRIDE; 37 OffscreenCompositorContextProvider() OVERRIDE;
38 virtual scoped_refptr<cc::ContextProvider> 38 virtual scoped_refptr<cc::ContextProvider>
39 SharedMainThreadContextProvider() OVERRIDE; 39 SharedMainThreadContextProvider() OVERRIDE;
40 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE; 40 virtual void RemoveCompositor(ui::Compositor* compositor) OVERRIDE;
41 virtual bool DoesCreateTestContexts() OVERRIDE; 41 virtual bool DoesCreateTestContexts() OVERRIDE;
42 42
43 bool Initialize(); 43 bool Initialize();
44 44
45 private: 45 private:
46 scoped_refptr<webkit::gpu::ContextProviderInProcess> 46 scoped_refptr<webkit::gpu::ContextProviderInProcess>
47 offscreen_compositor_contexts_; 47 offscreen_compositor_contexts_;
48 scoped_refptr<webkit::gpu::ContextProviderInProcess> 48 scoped_refptr<webkit::gpu::ContextProviderInProcess>
49 shared_main_thread_contexts_; 49 shared_main_thread_contexts_;
50 50
51 RootWindowHostMojo* rwhm_; 51 WindowTreeHostMojo* rwhm_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(DemoContextFactory); 53 DISALLOW_COPY_AND_ASSIGN(DemoContextFactory);
54 }; 54 };
55 55
56 } // namespace examples 56 } // namespace examples
57 } // namespace mojo 57 } // namespace mojo
58 58
59 #endif // MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_ 59 #endif // MOJO_EXAMPLES_AURA_DEMO_DEMO_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « mojo/examples/aura_demo/aura_demo.cc ('k') | mojo/examples/aura_demo/demo_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698