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

Side by Side Diff: android_webview/browser/browser_view_renderer_client.h

Issue 1002013003: Unit Test for WebView animating in and out of screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "ui/gfx/geometry/point.h" 9 #include "ui/gfx/geometry/point.h"
10 #include "ui/gfx/geometry/size_f.h" 10 #include "ui/gfx/geometry/size_f.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // to |min_page_scale_factor|..|max_page_scale_factor|. 47 // to |min_page_scale_factor|..|max_page_scale_factor|.
48 virtual void UpdateScrollState(gfx::Vector2d max_scroll_offset, 48 virtual void UpdateScrollState(gfx::Vector2d max_scroll_offset,
49 gfx::SizeF contents_size_dip, 49 gfx::SizeF contents_size_dip,
50 float page_scale_factor, 50 float page_scale_factor,
51 float min_page_scale_factor, 51 float min_page_scale_factor,
52 float max_page_scale_factor) = 0; 52 float max_page_scale_factor) = 0;
53 53
54 // Handle overscroll. 54 // Handle overscroll.
55 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) = 0; 55 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) = 0;
56 56
57 // Visible for testing
58 // Called when the parent draw constraints in browser view renderer gets
59 // updated.
60 virtual void ParentDrawConstraintsUpdated() = 0;
61
57 protected: 62 protected:
58 virtual ~BrowserViewRendererClient() {} 63 virtual ~BrowserViewRendererClient() {}
59 }; 64 };
60 65
61 } // namespace android_webview 66 } // namespace android_webview
62 67
63 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_ 68 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698