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

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

Issue 959773005: Share sky::PlatformImpl bettween sky_viewer and SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/BUILD.gn ('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"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "mojo/public/cpp/bindings/binding.h" 12 #include "mojo/public/cpp/bindings/binding.h"
13 #include "mojo/public/cpp/system/core.h" 13 #include "mojo/public/cpp/system/core.h"
14 #include "skia/ext/refptr.h" 14 #include "skia/ext/refptr.h"
15 #include "sky/engine/public/web/WebFrameClient.h" 15 #include "sky/engine/public/web/WebFrameClient.h"
16 #include "sky/engine/public/web/WebViewClient.h" 16 #include "sky/engine/public/web/WebViewClient.h"
17 #include "sky/shell/gpu_delegate.h" 17 #include "sky/shell/gpu_delegate.h"
18 #include "sky/shell/ui_delegate.h" 18 #include "sky/shell/ui_delegate.h"
19 #include "third_party/skia/include/core/SkPicture.h" 19 #include "third_party/skia/include/core/SkPicture.h"
20 #include "ui/gfx/geometry/size.h" 20 #include "ui/gfx/geometry/size.h"
21 21
22 namespace sky { 22 namespace sky {
23 class PlatformImpl;
23 namespace shell { 24 namespace shell {
24 class Animator; 25 class Animator;
25 class PlatformImpl;
26 26
27 class Engine : public UIDelegate, 27 class Engine : public UIDelegate,
28 public ViewportObserver, 28 public ViewportObserver,
29 public blink::WebFrameClient, 29 public blink::WebFrameClient,
30 public blink::WebViewClient { 30 public blink::WebViewClient {
31 public: 31 public:
32 struct Config { 32 struct Config {
33 base::WeakPtr<GPUDelegate> gpu_delegate; 33 base::WeakPtr<GPUDelegate> gpu_delegate;
34 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner; 34 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner;
35 }; 35 };
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 base::WeakPtrFactory<Engine> weak_factory_; 72 base::WeakPtrFactory<Engine> weak_factory_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(Engine); 74 DISALLOW_COPY_AND_ASSIGN(Engine);
75 }; 75 };
76 76
77 } // namespace shell 77 } // namespace shell
78 } // namespace sky 78 } // namespace sky
79 79
80 #endif // SKY_SHELL_UI_ENGINE_H_ 80 #endif // SKY_SHELL_UI_ENGINE_H_
OLDNEW
« no previous file with comments | « sky/shell/BUILD.gn ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698