| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEW_EXT_H_ | 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
| 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // Render process side of AwRenderViewHostExt, this provides cross-process | 26 // Render process side of AwRenderViewHostExt, this provides cross-process |
| 27 // implementation of miscellaneous WebView functions that we need to poke | 27 // implementation of miscellaneous WebView functions that we need to poke |
| 28 // WebKit directly to implement (and that aren't needed in the chrome app). | 28 // WebKit directly to implement (and that aren't needed in the chrome app). |
| 29 class AwRenderViewExt : public content::RenderViewObserver { | 29 class AwRenderViewExt : public content::RenderViewObserver { |
| 30 public: | 30 public: |
| 31 static void RenderViewCreated(content::RenderView* render_view); | 31 static void RenderViewCreated(content::RenderView* render_view); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 AwRenderViewExt(content::RenderView* render_view); | 34 AwRenderViewExt(content::RenderView* render_view); |
| 35 virtual ~AwRenderViewExt(); | 35 ~AwRenderViewExt() override; |
| 36 | 36 |
| 37 // RenderView::Observer: | 37 // RenderView::Observer: |
| 38 virtual bool OnMessageReceived(const IPC::Message& message) override; | 38 bool OnMessageReceived(const IPC::Message& message) override; |
| 39 virtual void FocusedNodeChanged(const blink::WebNode& node) override; | 39 void FocusedNodeChanged(const blink::WebNode& node) override; |
| 40 virtual void DidCommitCompositorFrame() override; | 40 void DidCommitCompositorFrame() override; |
| 41 virtual void DidUpdateLayout() override; | 41 void DidUpdateLayout() override; |
| 42 virtual void Navigate(const GURL& url) override; | 42 void Navigate(const GURL& url) override; |
| 43 | 43 |
| 44 void OnDocumentHasImagesRequest(int id); | 44 void OnDocumentHasImagesRequest(int id); |
| 45 | 45 |
| 46 void OnDoHitTest(const gfx::PointF& touch_center, | 46 void OnDoHitTest(const gfx::PointF& touch_center, |
| 47 const gfx::SizeF& touch_area); | 47 const gfx::SizeF& touch_area); |
| 48 | 48 |
| 49 void OnSetTextZoomFactor(float zoom_factor); | 49 void OnSetTextZoomFactor(float zoom_factor); |
| 50 | 50 |
| 51 void OnResetScrollAndScaleState(); | 51 void OnResetScrollAndScaleState(); |
| 52 | 52 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 64 | 64 |
| 65 gfx::Size last_sent_contents_size_; | 65 gfx::Size last_sent_contents_size_; |
| 66 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; | 66 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); | 68 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace android_webview | 71 } // namespace android_webview |
| 72 | 72 |
| 73 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 73 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
| OLD | NEW |