Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1069)

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 1538803002: Migrates battery_status from content/renderer/ to WebKit/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a TODO comment. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 a4b9fe7197665adc56bcd28af255c58fea89f871..89e3584316fe203e548a655d6c2df8768164831c 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"
Sam McNally 2016/02/18 00:39:35 I don't think this is needed.
Yuki 2016/02/18 06:05:14 Done.
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "mojo/public/cpp/system/core.h"
+
class GrContext;
namespace blink {
@@ -506,6 +509,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) { }

Powered by Google App Engine
This is Rietveld 408576698