| 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" |
| 11 #include "content/public/renderer/render_view_observer.h" | 11 #include "content/public/renderer/render_view_observer.h" |
| 12 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
| 13 #include "ui/gfx/geometry/rect_f.h" |
| 13 #include "ui/gfx/size.h" | 14 #include "ui/gfx/size.h" |
| 14 | 15 |
| 15 namespace blink { | 16 namespace blink { |
| 16 | 17 |
| 17 class WebNode; | 18 class WebNode; |
| 18 class WebURL; | 19 class WebURL; |
| 19 | 20 |
| 20 } // namespace blink | 21 } // namespace blink |
| 21 | 22 |
| 22 namespace android_webview { | 23 namespace android_webview { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 34 | 35 |
| 35 // RenderView::Observer: | 36 // RenderView::Observer: |
| 36 virtual bool OnMessageReceived(const IPC::Message& message) override; | 37 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 37 virtual void FocusedNodeChanged(const blink::WebNode& node) override; | 38 virtual void FocusedNodeChanged(const blink::WebNode& node) override; |
| 38 virtual void DidCommitCompositorFrame() override; | 39 virtual void DidCommitCompositorFrame() override; |
| 39 virtual void DidUpdateLayout() override; | 40 virtual void DidUpdateLayout() override; |
| 40 virtual void Navigate(const GURL& url) override; | 41 virtual void Navigate(const GURL& url) override; |
| 41 | 42 |
| 42 void OnDocumentHasImagesRequest(int id); | 43 void OnDocumentHasImagesRequest(int id); |
| 43 | 44 |
| 44 void OnDoHitTest(int view_x, int view_y); | 45 void OnDoHitTest(gfx::RectF touch_area); |
| 45 | 46 |
| 46 void OnSetTextZoomFactor(float zoom_factor); | 47 void OnSetTextZoomFactor(float zoom_factor); |
| 47 | 48 |
| 48 void OnResetScrollAndScaleState(); | 49 void OnResetScrollAndScaleState(); |
| 49 | 50 |
| 50 void OnSetInitialPageScale(double page_scale_factor); | 51 void OnSetInitialPageScale(double page_scale_factor); |
| 51 | 52 |
| 52 void OnSetBackgroundColor(SkColor c); | 53 void OnSetBackgroundColor(SkColor c); |
| 53 | 54 |
| 54 void UpdatePageScaleFactor(); | 55 void UpdatePageScaleFactor(); |
| 55 | 56 |
| 56 void CheckContentsSize(); | 57 void CheckContentsSize(); |
| 57 | 58 |
| 58 bool capture_picture_enabled_; | 59 bool capture_picture_enabled_; |
| 59 | 60 |
| 60 float page_scale_factor_; | 61 float page_scale_factor_; |
| 61 | 62 |
| 62 gfx::Size last_sent_contents_size_; | 63 gfx::Size last_sent_contents_size_; |
| 63 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; | 64 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); | 66 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace android_webview | 69 } // namespace android_webview |
| 69 | 70 |
| 70 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 71 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
| OLD | NEW |