Index: content/browser/renderer_host/render_widget_host_view_base.h |
diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h |
index 9bf2e60a48a0ce48fab36cd558a16b1552a9e12b..8ff1c75e73f4bef7f12487b7e7898a5216b74fe2 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_base.h |
+++ b/content/browser/renderer_host/render_widget_host_view_base.h |
@@ -22,6 +22,7 @@ |
#include "content/common/input/input_event_ack_state.h" |
#include "content/public/browser/render_widget_host_view.h" |
#include "ipc/ipc_listener.h" |
+#include "third_party/WebKit/public/platform/WebScreenOrientationType.h" |
#include "third_party/WebKit/public/web/WebPopupType.h" |
#include "third_party/WebKit/public/web/WebTextDirection.h" |
#include "ui/base/ime/text_input_mode.h" |
@@ -308,6 +309,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, |
// returned only if the accelerated surface size matches. |
virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; |
+ // Returns the orientation type based on the current display state. |
+ static blink::WebScreenOrientationType GetOrientationTypeFromDisplay( |
+ const gfx::Display& display); |
+ |
virtual void GetScreenInfo(blink::WebScreenInfo* results) = 0; |
// Gets the bounds of the window, in screen coordinates. |