| 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 14 matching lines...) Expand all Loading... |
| 25 // WebKit directly to implement (and that aren't needed in the chrome app). | 25 // WebKit directly to implement (and that aren't needed in the chrome app). |
| 26 class AwRenderFrameExt : public content::RenderFrameObserver { | 26 class AwRenderFrameExt : public content::RenderFrameObserver { |
| 27 public: | 27 public: |
| 28 AwRenderFrameExt(content::RenderFrame* render_frame); | 28 AwRenderFrameExt(content::RenderFrame* render_frame); |
| 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_document_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 void OnDestruct() override; |
| 40 | 40 |
| 41 void OnDocumentHasImagesRequest(uint32_t id); | 41 void OnDocumentHasImagesRequest(uint32_t id); |
| 42 void OnDoHitTest(const gfx::PointF& touch_center, | 42 void OnDoHitTest(const gfx::PointF& touch_center, |
| 43 const gfx::SizeF& touch_area); | 43 const gfx::SizeF& touch_area); |
| 44 | 44 |
| 45 void OnSetTextZoomFactor(float zoom_factor); | 45 void OnSetTextZoomFactor(float zoom_factor); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 58 url::Origin last_origin_; | 58 url::Origin last_origin_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(AwRenderFrameExt); | 60 DISALLOW_COPY_AND_ASSIGN(AwRenderFrameExt); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } | 63 } |
| 64 | 64 |
| 65 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ | 65 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_ |
| 66 | 66 |
| 67 | 67 |
| OLD | NEW |