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

Side by Side Diff: sky/shell/ui/engine.h

Issue 1202323002: Port sky_shell to Linux for testing (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « sky/shell/service_provider.cc ('k') | sky/shell/ui/engine.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SKY_SHELL_UI_ENGINE_H_ 5 #ifndef SKY_SHELL_UI_ENGINE_H_
6 #define SKY_SHELL_UI_ENGINE_H_ 6 #define SKY_SHELL_UI_ENGINE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 21 matching lines...) Expand all
32 32
33 class Engine : public UIDelegate, 33 class Engine : public UIDelegate,
34 public ViewportObserver, 34 public ViewportObserver,
35 public blink::ServiceProvider, 35 public blink::ServiceProvider,
36 public mojo::NavigatorHost, 36 public mojo::NavigatorHost,
37 public blink::WebFrameClient, 37 public blink::WebFrameClient,
38 public blink::WebViewClient, 38 public blink::WebViewClient,
39 public blink::SkyViewClient { 39 public blink::SkyViewClient {
40 public: 40 public:
41 struct Config { 41 struct Config {
42 Config();
43 ~Config();
44
42 ServiceProviderContext* service_provider_context; 45 ServiceProviderContext* service_provider_context;
43 46
44 base::WeakPtr<GPUDelegate> gpu_delegate; 47 base::WeakPtr<GPUDelegate> gpu_delegate;
45 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner; 48 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner;
46 }; 49 };
47 50
48 explicit Engine(const Config& config); 51 explicit Engine(const Config& config);
49 ~Engine() override; 52 ~Engine() override;
50 53
51 base::WeakPtr<Engine> GetWeakPtr(); 54 base::WeakPtr<Engine> GetWeakPtr();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 110
108 base::WeakPtrFactory<Engine> weak_factory_; 111 base::WeakPtrFactory<Engine> weak_factory_;
109 112
110 DISALLOW_COPY_AND_ASSIGN(Engine); 113 DISALLOW_COPY_AND_ASSIGN(Engine);
111 }; 114 };
112 115
113 } // namespace shell 116 } // namespace shell
114 } // namespace sky 117 } // namespace sky
115 118
116 #endif // SKY_SHELL_UI_ENGINE_H_ 119 #endif // SKY_SHELL_UI_ENGINE_H_
OLDNEW
« no previous file with comments | « sky/shell/service_provider.cc ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698