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 23 matching lines...) Expand all Loading... |
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, |
| 45 int view_y, |
| 46 float touch_major_0, |
| 47 float touch_major_1); |
45 | 48 |
46 void OnSetTextZoomFactor(float zoom_factor); | 49 void OnSetTextZoomFactor(float zoom_factor); |
47 | 50 |
48 void OnResetScrollAndScaleState(); | 51 void OnResetScrollAndScaleState(); |
49 | 52 |
50 void OnSetInitialPageScale(double page_scale_factor); | 53 void OnSetInitialPageScale(double page_scale_factor); |
51 | 54 |
52 void OnSetFixedLayoutSize(const gfx::Size& size); | 55 void OnSetFixedLayoutSize(const gfx::Size& size); |
53 | 56 |
54 void OnSetBackgroundColor(SkColor c); | 57 void OnSetBackgroundColor(SkColor c); |
55 | 58 |
56 void UpdatePageScaleFactor(); | 59 void UpdatePageScaleFactor(); |
57 | 60 |
58 void CheckContentsSize(); | 61 void CheckContentsSize(); |
59 | 62 |
60 bool capture_picture_enabled_; | 63 bool capture_picture_enabled_; |
61 | 64 |
62 float page_scale_factor_; | 65 float page_scale_factor_; |
63 | 66 |
64 gfx::Size last_sent_contents_size_; | 67 gfx::Size last_sent_contents_size_; |
65 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; | 68 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; |
66 | 69 |
67 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); | 70 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); |
68 }; | 71 }; |
69 | 72 |
70 } // namespace android_webview | 73 } // namespace android_webview |
71 | 74 |
72 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 75 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
OLD | NEW |