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

Unified Diff: content/renderer/render_view_impl.cc

Issue 10388045: Exposes OrientationChangeEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Exposes on RVHImpl only. Created 8 years, 7 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/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 841f41c6d1d1c1a6f5dbfbc66325f7ad63d443eb..7510c5a11bac2cf5928f5759c2eacd25c7ce4f8d 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -841,6 +841,8 @@ bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
OnDisableScrollbarsForSmallWindows)
IPC_MESSAGE_HANDLER(ViewMsg_SetRendererPrefs, OnSetRendererPrefs)
IPC_MESSAGE_HANDLER(ViewMsg_MediaPlayerActionAt, OnMediaPlayerActionAt)
+ IPC_MESSAGE_HANDLER(ViewMsg_OrientationChangeEvent,
+ OnOrientationChangeEvent)
IPC_MESSAGE_HANDLER(ViewMsg_PluginActionAt, OnPluginActionAt)
IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive)
IPC_MESSAGE_HANDLER(ViewMsg_SetNavigationStartTime,
@@ -4419,6 +4421,10 @@ void RenderViewImpl::OnMediaPlayerActionAt(const gfx::Point& location,
webview()->performMediaPlayerAction(action, location);
}
+void RenderViewImpl::OnOrientationChangeEvent(int orientation) {
+ webview()->mainFrame()->sendOrientationChangeEvent(orientation);
+}
+
void RenderViewImpl::OnPluginActionAt(const gfx::Point& location,
const WebPluginAction& action) {
if (webview())
« content/browser/renderer_host/render_view_host_impl.h ('K') | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698