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

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

Issue 873923003: sky/shell should link with sky/engine (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: moar deps 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/sky_main.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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SKY_SHELL_UI_ENGINE_H_
6 #define SKY_SHELL_UI_ENGINE_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h"
11 #include "sky/engine/public/web/WebFrameClient.h"
12 #include "sky/engine/public/web/WebViewClient.h"
13
14 namespace sky {
15 namespace shell {
16 class PlatformImpl;
17
18 class Engine : public blink::WebFrameClient,
19 public blink::WebViewClient {
20 public:
21 Engine();
22 ~Engine() override;
23
24 base::WeakPtr<Engine> GetWeakPtr();
25
26 void Init();
27
28 private:
29 scoped_ptr<PlatformImpl> platform_impl_;
30 blink::WebView* web_view_;
31
32 base::WeakPtrFactory<Engine> weak_factory_;
33
34 DISALLOW_COPY_AND_ASSIGN(Engine);
35 };
36
37 } // namespace shell
38 } // namespace sky
39
40 #endif // SKY_SHELL_UI_ENGINE_H_
OLDNEW
« no previous file with comments | « sky/shell/sky_main.cc ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698