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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 void OnSetTextZoomFactor(float zoom_factor); | 50 void OnSetTextZoomFactor(float zoom_factor); |
51 | 51 |
52 void OnResetScrollAndScaleState(); | 52 void OnResetScrollAndScaleState(); |
53 | 53 |
54 void OnSetInitialPageScale(double page_scale_factor); | 54 void OnSetInitialPageScale(double page_scale_factor); |
55 | 55 |
56 void OnSetFixedLayoutSize(const gfx::Size& size); | 56 void OnSetFixedLayoutSize(const gfx::Size& size); |
57 | 57 |
58 void OnSetBackgroundColor(SkColor c); | 58 void OnSetBackgroundColor(SkColor c); |
59 | 59 |
| 60 void OnPauseOrResumeGeolocation(bool should_pause); |
| 61 |
60 void UpdatePageScaleFactor(); | 62 void UpdatePageScaleFactor(); |
61 | 63 |
62 void CheckContentsSize(); | 64 void CheckContentsSize(); |
63 | 65 |
64 // blink::WebPermissionClient implementation. | 66 // blink::WebPermissionClient implementation. |
65 virtual bool allowDisplayingInsecureContent( | 67 virtual bool allowDisplayingInsecureContent( |
66 blink::WebFrame* frame, | 68 blink::WebFrame* frame, |
67 bool enabled_per_settings, | 69 bool enabled_per_settings, |
68 const blink::WebSecurityOrigin& origin, | 70 const blink::WebSecurityOrigin& origin, |
69 const blink::WebURL& url) OVERRIDE; | 71 const blink::WebURL& url) OVERRIDE; |
70 virtual bool allowRunningInsecureContent( | 72 virtual bool allowRunningInsecureContent( |
71 blink::WebFrame* frame, | 73 blink::WebFrame* frame, |
72 bool enabled_per_settings, | 74 bool enabled_per_settings, |
73 const blink::WebSecurityOrigin& origin, | 75 const blink::WebSecurityOrigin& origin, |
74 const blink::WebURL& url) OVERRIDE; | 76 const blink::WebURL& url) OVERRIDE; |
75 | 77 |
76 bool capture_picture_enabled_; | 78 bool capture_picture_enabled_; |
77 | 79 |
78 float page_scale_factor_; | 80 float page_scale_factor_; |
79 | 81 |
80 gfx::Size last_sent_contents_size_; | 82 gfx::Size last_sent_contents_size_; |
81 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; | 83 base::OneShotTimer<AwRenderViewExt> check_contents_size_timer_; |
82 | 84 |
83 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); | 85 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); |
84 }; | 86 }; |
85 | 87 |
86 } // namespace android_webview | 88 } // namespace android_webview |
87 | 89 |
88 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 90 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
OLD | NEW |