2015-06-12 13:29:53 -07:00
|
|
|
// 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_
|
|
|
|
|
|
2015-09-02 15:18:23 -07:00
|
|
|
#include "base/files/file_path.h"
|
2015-06-12 13:29:53 -07:00
|
|
|
#include "base/macros.h"
|
|
|
|
|
#include "base/memory/scoped_ptr.h"
|
2015-08-11 14:00:37 -07:00
|
|
|
#include "mojo/public/cpp/system/data_pipe.h"
|
2015-06-12 13:29:53 -07:00
|
|
|
|
|
|
|
|
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(); }
|
|
|
|
|
|
2015-08-11 14:00:37 -07:00
|
|
|
void StartDartTracing();
|
|
|
|
|
void StopDartTracing(mojo::ScopedDataPipeProducerHandle producer);
|
|
|
|
|
|
2015-06-12 13:29:53 -07:00
|
|
|
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_
|