| 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 15 matching lines...) Expand all Loading... |
| 26 // WebKit directly to implement (and that aren't needed in the chrome app). | 26 // WebKit directly to implement (and that aren't needed in the chrome app). |
| 27 class AwRenderViewExt : public content::RenderViewObserver { | 27 class AwRenderViewExt : public content::RenderViewObserver { |
| 28 public: | 28 public: |
| 29 static void RenderViewCreated(content::RenderView* render_view); | 29 static void RenderViewCreated(content::RenderView* render_view); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 AwRenderViewExt(content::RenderView* render_view); | 32 AwRenderViewExt(content::RenderView* render_view); |
| 33 virtual ~AwRenderViewExt(); | 33 virtual ~AwRenderViewExt(); |
| 34 | 34 |
| 35 // RenderView::Observer: | 35 // RenderView::Observer: |
| 36 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 36 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 37 virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE; | 37 virtual void FocusedNodeChanged(const blink::WebNode& node) override; |
| 38 virtual void DidCommitCompositorFrame() OVERRIDE; | 38 virtual void DidCommitCompositorFrame() override; |
| 39 virtual void DidUpdateLayout() OVERRIDE; | 39 virtual void DidUpdateLayout() override; |
| 40 virtual void Navigate(const GURL& url) OVERRIDE; | 40 virtual void Navigate(const GURL& url) override; |
| 41 | 41 |
| 42 void OnDocumentHasImagesRequest(int id); | 42 void OnDocumentHasImagesRequest(int id); |
| 43 | 43 |
| 44 void OnDoHitTest(int view_x, int view_y); | 44 void OnDoHitTest(int view_x, int view_y); |
| 45 | 45 |
| 46 void OnSetTextZoomFactor(float zoom_factor); | 46 void OnSetTextZoomFactor(float zoom_factor); |
| 47 | 47 |
| 48 void OnResetScrollAndScaleState(); | 48 void OnResetScrollAndScaleState(); |
| 49 | 49 |
| 50 void OnSetInitialPageScale(double page_scale_factor); | 50 void OnSetInitialPageScale(double page_scale_factor); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 61 | 61 |
| 62 gfx::Size last_sent_contents_size_; | 62 gfx::Size last_sent_contents_size_; |
| 63 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; | 63 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); | 65 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace android_webview | 68 } // namespace android_webview |
| 69 | 69 |
| 70 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 70 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
| OLD | NEW |