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

Unified Diff: sky/shell/shell_view.h

Issue 1187503003: Refactor SkyShell to allow multiple SkyViews (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: s/instance/sky_shell/ 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/shell/shell.cc ('k') | sky/shell/shell_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/shell_view.h
diff --git a/sky/shell/shell_view.h b/sky/shell/shell_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..221406fdd144f0d2eabdf410e2a1b1d1cf23d650
--- /dev/null
+++ b/sky/shell/shell_view.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_SHELL_VIEW_H_
+#define SKY_SHELL_SHELL_VIEW_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace sky {
+namespace shell {
+class Engine;
+class PlatformView;
+class Rasterizer;
+class Shell;
+
+class ShellView {
+ public:
+ explicit ShellView(Shell& shell);
+ ~ShellView();
+
+ PlatformView* view() const { return view_.get(); }
+
+ private:
+ void CreateEngine();
+ void CreatePlatformView();
+
+ Shell& shell_;
+ scoped_ptr<PlatformView> view_;
+ scoped_ptr<Rasterizer> rasterizer_;
+ scoped_ptr<Engine> engine_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellView);
+};
+
+} // namespace shell
+} // namespace sky
+
+#endif // SKY_SHELL_SHELL_VIEW_H_
« no previous file with comments | « sky/shell/shell.cc ('k') | sky/shell/shell_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698