| Index: third_party/WebKit/public/platform/Platform.h
|
| diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
|
| index e787ce08524755a27fdb2a76b30f9ee5b5358acf..719a804a888d3d3ea9057b27af1917ce5bfb3d55 100644
|
| --- a/third_party/WebKit/public/platform/Platform.h
|
| +++ b/third_party/WebKit/public/platform/Platform.h
|
| @@ -36,7 +36,6 @@
|
| #endif
|
|
|
| #include "WebAudioDevice.h"
|
| -#include "WebBatteryStatusListener.h"
|
| #include "WebCommon.h"
|
| #include "WebData.h"
|
| #include "WebDeviceLightListener.h"
|
| @@ -54,6 +53,10 @@
|
| #include "WebURLError.h"
|
| #include "WebVector.h"
|
|
|
| +#include "mojo/public/cpp/bindings/interface_ptr.h"
|
| +#include "mojo/public/cpp/bindings/interface_request.h"
|
| +#include "mojo/public/cpp/system/core.h"
|
| +
|
| class GrContext;
|
|
|
| namespace blink {
|
| @@ -514,6 +517,14 @@ public:
|
| // Platform events -----------------------------------------------------
|
| // Device Orientation, Device Motion, Device Light, Battery, Gamepad.
|
|
|
| + // Connects the mojo handle to the remote service provider.
|
| + template<typename Interface>
|
| + void connectToRemoteService(mojo::InterfaceRequest<Interface> ptr)
|
| + {
|
| + connectToRemoteService(Interface::Name_, ptr.PassMessagePipe());
|
| + }
|
| + virtual void connectToRemoteService(const char* name, mojo::ScopedMessagePipeHandle handle) { }
|
| +
|
| // Request the platform to start listening to the events of the specified
|
| // type and notify the given listener (if not null) when there is an update.
|
| virtual void startListening(WebPlatformEventType type, WebPlatformEventListener* listener) { }
|
|
|