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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: sky/shell/ui/engine.h
diff --git a/sky/shell/ui/engine.h b/sky/shell/ui/engine.h
new file mode 100644
index 0000000000000000000000000000000000000000..cba0c7a7ad9541e7f7c683af0cd8fbeb87b51101
--- /dev/null
+++ b/sky/shell/ui/engine.h
@@ -0,0 +1,40 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SKY_SHELL_UI_ENGINE_H_
+#define SKY_SHELL_UI_ENGINE_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+#include "sky/engine/public/web/WebFrameClient.h"
+#include "sky/engine/public/web/WebViewClient.h"
+
+namespace sky {
+namespace shell {
+class PlatformImpl;
+
+class Engine : public blink::WebFrameClient,
eseidel 2015/02/04 08:23:58 I love that we have a class named engine now :)
+ public blink::WebViewClient {
+ public:
+ Engine();
+ ~Engine() override;
+
+ base::WeakPtr<Engine> GetWeakPtr();
+
+ void Init();
+
+ private:
+ scoped_ptr<PlatformImpl> platform_impl_;
+ blink::WebView* web_view_;
+
+ base::WeakPtrFactory<Engine> weak_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(Engine);
+};
+
+} // namespace shell
+} // namespace sky
+
+#endif // SKY_SHELL_UI_ENGINE_H_

Powered by Google App Engine
This is Rietveld 408576698