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

Unified Diff: ui/views/controls/webview/webview.h

Issue 30993004: Reland: Implement features in NativeViewHostAura for scroll end effect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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: 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

Powered by Google App Engine
This is Rietveld 408576698