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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 398013002: Poll for Display rotation on Android 4.0 and 4.1 when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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: content/renderer/renderer_webkitplatformsupport_impl.cc
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
index 3c9197ad638f50af92a85dbb0109b21a81d60483..8c73620617d58866a9baf7a1a8601bb40a2660e2 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
@@ -33,6 +33,7 @@
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
#include "content/common/gpu/gpu_process_launch_causes.h"
#include "content/common/mime_registry_messages.h"
+#include "content/common/screen_orientation_messages.h"
#include "content/common/view_messages.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/webplugininfo.h"
@@ -1151,4 +1152,14 @@ void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting(
g_test_battery_status_dispatcher.Get().PostBatteryStatusChange(status);
}
+//------------------------------------------------------------------------------
jam 2014/07/16 21:29:14 why?
mlamouri (slow - plz ping) 2014/07/17 09:44:16 This seems to be a convention in this file where t
jam 2014/07/17 17:19:51 this file's convention is wrong. some files have "
+
+void RendererWebKitPlatformSupportImpl::startScreenOrientationListening() {
+ RenderThread::Get()->Send(new ScreenOrientationHostMsg_StartListening());
+}
+
+void RendererWebKitPlatformSupportImpl::stopScreenOrientationListening() {
+ RenderThread::Get()->Send(new ScreenOrientationHostMsg_StopListening());
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698