Delete //sky/services/platform
There's no longer any code to share in this library. Instead, inline the one trival class into both //sky/shell and //services/sky. TBR=eseidel@google.com Review URL: https://codereview.chromium.org/1237043002 .
This commit is contained in:
@@ -20,7 +20,6 @@ common_deps = [
|
||||
"//sky/engine/tonic",
|
||||
"//sky/engine/wtf",
|
||||
"//sky/services/engine:interfaces",
|
||||
"//sky/services/platform",
|
||||
"//sky/shell/dart",
|
||||
"//ui/gfx/geometry",
|
||||
"//ui/gl",
|
||||
@@ -56,6 +55,8 @@ source_set("common") {
|
||||
"ui/input_event_converter.h",
|
||||
"ui/internals.cc",
|
||||
"ui/internals.h",
|
||||
"ui/platform_impl.cc",
|
||||
"ui/platform_impl.h",
|
||||
"ui_delegate.cc",
|
||||
"ui_delegate.h",
|
||||
]
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
#include "sky/engine/public/platform/sky_display_metrics.h"
|
||||
#include "sky/engine/public/platform/sky_display_metrics.h"
|
||||
#include "sky/engine/public/web/Sky.h"
|
||||
#include "sky/services/platform/platform_impl.h"
|
||||
#include "sky/shell/dart/dart_library_provider_files.h"
|
||||
#include "sky/shell/dart/dart_library_provider_network.h"
|
||||
#include "sky/shell/service_provider.h"
|
||||
#include "sky/shell/ui/animator.h"
|
||||
#include "sky/shell/ui/input_event_converter.h"
|
||||
#include "sky/shell/ui/internals.h"
|
||||
#include "sky/shell/ui/platform_impl.h"
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkPictureRecorder.h"
|
||||
|
||||
|
||||
26
engine/src/flutter/shell/ui/platform_impl.cc
Normal file
26
engine/src/flutter/shell/ui/platform_impl.cc
Normal file
@@ -0,0 +1,26 @@
|
||||
// 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.
|
||||
|
||||
#include "sky/shell/ui/platform_impl.h"
|
||||
|
||||
namespace sky {
|
||||
namespace shell {
|
||||
|
||||
PlatformImpl::PlatformImpl()
|
||||
: main_thread_task_runner_(base::MessageLoop::current()->task_runner()) {
|
||||
}
|
||||
|
||||
PlatformImpl::~PlatformImpl() {
|
||||
}
|
||||
|
||||
blink::WebString PlatformImpl::defaultLocale() {
|
||||
return blink::WebString::fromUTF8("en-US");
|
||||
}
|
||||
|
||||
base::SingleThreadTaskRunner* PlatformImpl::mainThreadTaskRunner() {
|
||||
return main_thread_task_runner_.get();
|
||||
}
|
||||
|
||||
} // namespace shell
|
||||
} // namespace sky
|
||||
32
engine/src/flutter/shell/ui/platform_impl.h
Normal file
32
engine/src/flutter/shell/ui/platform_impl.h
Normal file
@@ -0,0 +1,32 @@
|
||||
// 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_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:
|
||||
explicit PlatformImpl();
|
||||
~PlatformImpl() override;
|
||||
|
||||
// blink::Platform methods:
|
||||
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_
|
||||
Reference in New Issue
Block a user