flutter_flutter/sky/shell/shell_view.h
Adam Barth 142c5dc5ec Remove almost all uses of base::scoped_ptr
We now use std::unique_ptr more consistently.
2016-01-27 01:05:47 -08:00

44 lines
909 B
C++

// 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 <memory>
#include "base/files/file_path.h"
#include "base/macros.h"
#include "mojo/public/cpp/system/data_pipe.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_;
std::unique_ptr<PlatformView> view_;
std::unique_ptr<Rasterizer> rasterizer_;
std::unique_ptr<Engine> engine_;
DISALLOW_COPY_AND_ASSIGN(ShellView);
};
} // namespace shell
} // namespace sky
#endif // SKY_SHELL_SHELL_VIEW_H_