Index: ui/views/controls/webview/webview.h |
diff --git a/ui/views/controls/webview/webview.h b/ui/views/controls/webview/webview.h |
index 7e50914131c28fd7a3cef8d1c4cfe609eac9b3fd..2bbe0c8694012e97fe3efa3d560a778789d970ee 100644 |
--- a/ui/views/controls/webview/webview.h |
+++ b/ui/views/controls/webview/webview.h |
@@ -12,6 +12,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" |
@@ -22,6 +23,7 @@ class SiteInstance; |
namespace views { |
class NativeViewHost; |
+enum FastResizeGravity; |
sky
2013/09/24 20:23:25
not needed
rharrison
2013/09/26 20:36:48
Done.
|
class WEBVIEW_EXPORT WebView : public View, |
public content::NotificationObserver, |
@@ -71,6 +73,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(FastResizeGravity 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 |