OLD | NEW |
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_RENDERER_AW_RENDER_FRAME_EXT_H_ | 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ |
6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ | 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/renderer/render_frame_observer.h" | 9 #include "content/public/renderer/render_frame_observer.h" |
10 #include "ui/gfx/geometry/point_f.h" | 10 #include "ui/gfx/geometry/point_f.h" |
11 #include "ui/gfx/geometry/size.h" | 11 #include "ui/gfx/geometry/size.h" |
12 #include "ui/gfx/geometry/size_f.h" | 12 #include "ui/gfx/geometry/size_f.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 enum WebMeaningfulLayout; | 15 enum WebMeaningfulLayout; |
| 16 class WebFrameWidget; |
16 class WebView; | 17 class WebView; |
17 } | 18 } |
18 | 19 |
19 namespace android_webview { | 20 namespace android_webview { |
20 | 21 |
21 // Render process side of AwRenderViewHostExt, this provides cross-process | 22 // Render process side of AwRenderViewHostExt, this provides cross-process |
22 // implementation of miscellaneous WebView functions that we need to poke | 23 // implementation of miscellaneous WebView functions that we need to poke |
23 // WebKit directly to implement (and that aren't needed in the chrome app). | 24 // WebKit directly to implement (and that aren't needed in the chrome app). |
24 class AwRenderFrameExt : public content::RenderFrameObserver { | 25 class AwRenderFrameExt : public content::RenderFrameObserver { |
25 public: | 26 public: |
(...skipping 17 matching lines...) Expand all Loading... |
43 | 44 |
44 void OnResetScrollAndScaleState(); | 45 void OnResetScrollAndScaleState(); |
45 | 46 |
46 void OnSetInitialPageScale(double page_scale_factor); | 47 void OnSetInitialPageScale(double page_scale_factor); |
47 | 48 |
48 void OnSetBackgroundColor(SkColor c); | 49 void OnSetBackgroundColor(SkColor c); |
49 | 50 |
50 void OnSmoothScroll(int target_x, int target_y, int duration_ms); | 51 void OnSmoothScroll(int target_x, int target_y, int duration_ms); |
51 | 52 |
52 blink::WebView* GetWebView(); | 53 blink::WebView* GetWebView(); |
| 54 blink::WebFrameWidget* GetWebFrameWidget(); |
53 | 55 |
54 DISALLOW_COPY_AND_ASSIGN(AwRenderFrameExt); | 56 DISALLOW_COPY_AND_ASSIGN(AwRenderFrameExt); |
55 }; | 57 }; |
56 | 58 |
57 } | 59 } |
58 | 60 |
59 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ | 61 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ |
60 | 62 |
61 | 63 |
OLD | NEW |