Chromium Code Reviews| Index: sky/shell/instance.h |
| diff --git a/sky/shell/instance.h b/sky/shell/instance.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a3c1d163585e9c6e4b7e925c321831aad58db07d |
| --- /dev/null |
| +++ b/sky/shell/instance.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_INSTANCE_H_ |
| +#define SKY_SHELL_INSTANCE_H_ |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/scoped_ptr.h" |
| + |
| +namespace sky { |
| +namespace shell { |
| +class Engine; |
| +class PlatformView; |
| +class Rasterizer; |
| +class Shell; |
| + |
| +class Instance { |
|
eseidel
2015/06/12 19:17:34
Instance is a pretty generic name. SkyView? Shel
|
| + public: |
| + explicit Instance(Shell& shell); |
| + ~Instance(); |
| + |
| + PlatformView* view() const { return view_.get(); } |
| + |
| + private: |
| + void CreateEngine(); |
| + void CreateView(); |
| + |
| + Shell& shell_; |
| + scoped_ptr<PlatformView> view_; |
| + scoped_ptr<Rasterizer> rasterizer_; |
| + scoped_ptr<Engine> engine_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(Instance); |
| +}; |
| + |
| +} // namespace shell |
| +} // namespace sky |
| + |
| +#endif // SKY_SHELL_INSTANCE_H_ |