mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL adds a global view object that can receive a Picture and be signaled to draw. When using SkyView, this Picture shows up on screen. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1134913003
37 lines
922 B
C++
37 lines
922 B
C++
// Copyright 2014 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_ENGINE_BINDINGS_BUILTIN_SKY_H_
|
|
#define SKY_ENGINE_BINDINGS_BUILTIN_SKY_H_
|
|
|
|
#include "base/macros.h"
|
|
#include "dart/runtime/include/dart_api.h"
|
|
#include "sky/engine/tonic/dart_class_provider.h"
|
|
#include "sky/engine/tonic/dart_persistent_value.h"
|
|
|
|
namespace blink {
|
|
class DOMDartState;
|
|
class View;
|
|
|
|
class BuiltinSky : public DartClassProvider {
|
|
public:
|
|
explicit BuiltinSky(DOMDartState* dart_state);
|
|
~BuiltinSky();
|
|
|
|
void InstallWindow(DOMDartState* dart_state);
|
|
void InstallView(View* view);
|
|
|
|
// DartClassProvider:
|
|
Dart_Handle GetClassByName(const char* class_name) override;
|
|
|
|
private:
|
|
DartPersistentValue library_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(BuiltinSky);
|
|
};
|
|
|
|
} // namespace blink
|
|
|
|
#endif // SKY_ENGINE_BINDINGS_BUILTIN_SKY_H_
|