Index: ui/views/controls/webview/webview.h |
diff --git a/ui/views/controls/webview/webview.h b/ui/views/controls/webview/webview.h |
index ae789be2aaa3ee4d3d511bfb7a0da07efe5bb3b2..70c1580b7a812d673c6889cc581d25a197d4c0c9 100644 |
--- a/ui/views/controls/webview/webview.h |
+++ b/ui/views/controls/webview/webview.h |
@@ -10,6 +10,7 @@ |
#include "content/public/browser/web_contents_delegate.h" |
#include "content/public/browser/web_contents_observer.h" |
#include "ui/views/accessibility/native_view_accessibility.h" |
+#include "ui/views/controls/native/native_view_host.h" |
#include "ui/views/controls/webview/webview_export.h" |
#include "ui/views/view.h" |
@@ -19,8 +20,6 @@ class SiteInstance; |
namespace views { |
-class NativeViewHost; |
- |
class WEBVIEW_EXPORT WebView : public View, |
public content::WebContentsDelegate, |
public content::WebContentsObserver { |
@@ -68,6 +67,11 @@ class WEBVIEW_EXPORT WebView : public View, |
// resizing performance during interactive resizes and animations. |
void SetFastResize(bool fast_resize); |
+ // Controls how the clip is positioned relative to the contents when using |
+ // fast resize. Details of the meaning of the parameter can be found in |
+ // native_view_host.h |
+ void SetFastResizeGravity(NativeViewHost::Gravity gravity); |
+ |
// Called when the WebContents is focused. |
// TODO(beng): This view should become a WebContentsViewObserver when a |
// WebContents is attached, and not rely on the delegate to |