Remove editing.mojom (flutter/engine#3152)
Clients have been migrated to the TextInputPlugin.
This commit is contained in:
@@ -84,8 +84,6 @@ android_library("java") {
|
||||
|
||||
deps = [
|
||||
"//base:base_java",
|
||||
"//flutter/services/editing:editing_lib",
|
||||
"//flutter/services/editing:interfaces_java",
|
||||
"//flutter/services/engine:interfaces_java",
|
||||
"//flutter/services/platform:interfaces_java",
|
||||
"//flutter/services/vsync:vsync_lib",
|
||||
|
||||
@@ -42,7 +42,6 @@ import org.chromium.mojo.system.MessagePipeHandle;
|
||||
import org.chromium.mojo.system.MojoException;
|
||||
import org.chromium.mojo.system.Pair;
|
||||
import org.chromium.mojo.system.impl.CoreImpl;
|
||||
import org.chromium.mojom.editing.Keyboard;
|
||||
import org.chromium.mojom.flutter.platform.ApplicationMessages;
|
||||
import org.chromium.mojom.mojo.ServiceProvider;
|
||||
import org.chromium.mojom.sky.AppLifecycleState;
|
||||
@@ -63,9 +62,6 @@ import io.flutter.plugin.common.ActivityLifecycleListener;
|
||||
import io.flutter.plugin.editing.TextInputPlugin;
|
||||
import io.flutter.plugin.platform.PlatformPlugin;
|
||||
|
||||
import org.domokit.editing.KeyboardImpl;
|
||||
import org.domokit.editing.KeyboardViewState;
|
||||
|
||||
/**
|
||||
* An Android view containing a Flutter app.
|
||||
*/
|
||||
@@ -90,7 +86,6 @@ public class FlutterView extends SurfaceView
|
||||
private HashMap<String, OnMessageListenerAsync> mAsyncOnMessageListeners;
|
||||
private final SurfaceHolder.Callback mSurfaceCallback;
|
||||
private final ViewportMetrics mMetrics;
|
||||
private final KeyboardViewState mKeyboardState;
|
||||
private final AccessibilityManager mAccessibilityManager;
|
||||
private BroadcastReceiver discoveryReceiver;
|
||||
private List<ActivityLifecycleListener> mActivityLifecycleListeners;
|
||||
@@ -139,8 +134,6 @@ public class FlutterView extends SurfaceView
|
||||
};
|
||||
getHolder().addCallback(mSurfaceCallback);
|
||||
|
||||
mKeyboardState = new KeyboardViewState(this);
|
||||
|
||||
Core core = CoreImpl.getInstance();
|
||||
|
||||
mPlatformServiceProvider = new ServiceProviderImpl(core, this, ServiceRegistry.SHARED);
|
||||
@@ -273,10 +266,7 @@ public class FlutterView extends SurfaceView
|
||||
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
|
||||
InputConnection connection = mKeyboardState.createInputConnection(outAttrs);
|
||||
if (connection == null)
|
||||
connection = mTextInputPlugin.createInputConnection(this, outAttrs);
|
||||
return connection;
|
||||
return mTextInputPlugin.createInputConnection(this, outAttrs);
|
||||
}
|
||||
|
||||
// Must match the PointerChange enum in pointer.dart.
|
||||
@@ -463,13 +453,6 @@ public class FlutterView extends SurfaceView
|
||||
}
|
||||
|
||||
private void configureLocalServices(ServiceRegistry registry) {
|
||||
registry.register(Keyboard.MANAGER.getName(), new ServiceFactory() {
|
||||
@Override
|
||||
public Binding connectToService(FlutterView view, Core core, MessagePipeHandle pipe) {
|
||||
return Keyboard.MANAGER.bind(new KeyboardImpl(view.getContext(), mKeyboardState), pipe);
|
||||
}
|
||||
});
|
||||
|
||||
registry.register(ApplicationMessages.MANAGER.getName(), new ServiceFactory() {
|
||||
@Override
|
||||
public Binding connectToService(FlutterView view, Core core, MessagePipeHandle pipe) {
|
||||
|
||||
@@ -21,7 +21,6 @@ source_set("common") {
|
||||
"//base:i18n",
|
||||
"//dart/runtime:libdart",
|
||||
"//flutter/runtime",
|
||||
"//flutter/services/editing",
|
||||
"//flutter/services/engine:interfaces",
|
||||
"//flutter/services/platform",
|
||||
"//flutter/services/vsync",
|
||||
|
||||
@@ -25,13 +25,6 @@ void ViewServiceProvider::ConnectToService(
|
||||
std::move(client_handle)));
|
||||
return;
|
||||
}
|
||||
#if TARGET_OS_IPHONE
|
||||
if (service_name == ::editing::Keyboard::Name_) {
|
||||
new sky::services::editing::KeyboardImpl(
|
||||
mojo::InterfaceRequest<::editing::Keyboard>(std::move(client_handle)));
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace shell
|
||||
|
||||
@@ -13,10 +13,6 @@
|
||||
#include "mojo/public/cpp/bindings/strong_binding.h"
|
||||
#include "mojo/public/interfaces/application/service_provider.mojom.h"
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
#include "flutter/services/editing/ios/keyboard_impl.h"
|
||||
#endif
|
||||
|
||||
namespace shell {
|
||||
|
||||
typedef std::function<void(
|
||||
|
||||
@@ -52,7 +52,6 @@ shared_library("flutter_framework_dylib") {
|
||||
"//base:base",
|
||||
"//dart/runtime:libdart",
|
||||
"//flutter/lib/ui",
|
||||
"//flutter/services/editing",
|
||||
"//flutter/services/engine:interfaces",
|
||||
"//flutter/services/platform",
|
||||
"//flutter/services/vsync",
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
/// Copyright 2016 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.
|
||||
|
||||
import 'package:sky_services/editing/editing.mojom.dart';
|
||||
export 'package:sky_services/editing/editing.mojom.dart';
|
||||
@@ -1,6 +0,0 @@
|
||||
/// Copyright 2016 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.
|
||||
|
||||
import 'package:sky_services/sky/input_event.mojom.dart';
|
||||
export 'package:sky_services/sky/input_event.mojom.dart';
|
||||
@@ -23,7 +23,6 @@ dart_pkg("sky_services") {
|
||||
|
||||
deps = [
|
||||
":copy_sky_services_license",
|
||||
"//flutter/services/editing:interfaces",
|
||||
"//flutter/services/platform:interfaces",
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user