| 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" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 ~AwRenderFrameExt() override; | 31 ~AwRenderFrameExt() override; |
| 32 | 32 |
| 33 // RenderFrameObserver: | 33 // RenderFrameObserver: |
| 34 void DidCommitProvisionalLoad(bool is_new_navigation, | 34 void DidCommitProvisionalLoad(bool is_new_navigation, |
| 35 bool is_same_page_navigation) override; | 35 bool is_same_page_navigation) override; |
| 36 | 36 |
| 37 bool OnMessageReceived(const IPC::Message& message) override; | 37 bool OnMessageReceived(const IPC::Message& message) override; |
| 38 void FocusedNodeChanged(const blink::WebNode& node) override; | 38 void FocusedNodeChanged(const blink::WebNode& node) override; |
| 39 void OnDestruct() override; |
| 39 | 40 |
| 40 void OnDocumentHasImagesRequest(uint32_t id); | 41 void OnDocumentHasImagesRequest(uint32_t id); |
| 41 void OnDoHitTest(const gfx::PointF& touch_center, | 42 void OnDoHitTest(const gfx::PointF& touch_center, |
| 42 const gfx::SizeF& touch_area); | 43 const gfx::SizeF& touch_area); |
| 43 | 44 |
| 44 void OnSetTextZoomFactor(float zoom_factor); | 45 void OnSetTextZoomFactor(float zoom_factor); |
| 45 | 46 |
| 46 void OnResetScrollAndScaleState(); | 47 void OnResetScrollAndScaleState(); |
| 47 | 48 |
| 48 void OnSetInitialPageScale(double page_scale_factor); | 49 void OnSetInitialPageScale(double page_scale_factor); |
| 49 | 50 |
| 50 void OnSetBackgroundColor(SkColor c); | 51 void OnSetBackgroundColor(SkColor c); |
| 51 | 52 |
| 52 void OnSmoothScroll(int target_x, int target_y, int duration_ms); | 53 void OnSmoothScroll(int target_x, int target_y, int duration_ms); |
| 53 | 54 |
| 54 blink::WebView* GetWebView(); | 55 blink::WebView* GetWebView(); |
| 55 blink::WebFrameWidget* GetWebFrameWidget(); | 56 blink::WebFrameWidget* GetWebFrameWidget(); |
| 56 | 57 |
| 57 url::Origin last_origin_; | 58 url::Origin last_origin_; |
| 58 | 59 |
| 59 DISALLOW_COPY_AND_ASSIGN(AwRenderFrameExt); | 60 DISALLOW_COPY_AND_ASSIGN(AwRenderFrameExt); |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } | 63 } |
| 63 | 64 |
| 64 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ | 65 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ |
| 65 | 66 |
| 66 | 67 |
| OLD | NEW |