mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL causes sky/shell to create a blink::WebView to show that sky/shell links with sky/engine. In the process, I've made it easier to be a trivial embedder of sky/engine by removing the requirement to implement blink::ServiceProvider. This CL also causes sky/shell to link with mojo/edk/system to resolve link errors with Mojo fabric (e.g., MojoClose, MojoWriteMessage, etc). To make this work properly, we'll need to initialize the EDK in a future CL. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/873923003
33 lines
820 B
C++
33 lines
820 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_UI_PLATFORM_IMPL_H_
|
|
#define SKY_SHELL_UI_PLATFORM_IMPL_H_
|
|
|
|
#include "base/message_loop/message_loop.h"
|
|
#include "sky/engine/public/platform/Platform.h"
|
|
|
|
namespace sky {
|
|
namespace shell {
|
|
|
|
class PlatformImpl : public blink::Platform {
|
|
public:
|
|
PlatformImpl();
|
|
~PlatformImpl() override;
|
|
|
|
// blink::Platform:
|
|
blink::WebString defaultLocale() override;
|
|
base::SingleThreadTaskRunner* mainThreadTaskRunner() override;
|
|
|
|
private:
|
|
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(PlatformImpl);
|
|
};
|
|
|
|
} // namespace shell
|
|
} // namespace sky
|
|
|
|
#endif // SKY_SHELL_UI_PLATFORM_IMPL_H_
|