Chromium Code Reviews| OLD | NEW |
|---|---|
| (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, | |
|
eseidel
2015/02/04 08:23:58
I love that we have a class named engine now :)
| |
| 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_ | |
| OLD | NEW |