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 "content/public/renderer/render_view_observer.h" | 10 #include "content/public/renderer/render_view_observer.h" |
11 #include "third_party/WebKit/public/web/WebPermissionClient.h" | 11 #include "third_party/WebKit/public/web/WebPermissionClient.h" |
| 12 #include "third_party/skia/include/core/SkColor.h" |
12 | 13 |
13 namespace WebKit { | 14 namespace WebKit { |
14 | 15 |
15 class WebNode; | 16 class WebNode; |
16 class WebURL; | 17 class WebURL; |
17 | 18 |
18 } // namespace WebKit | 19 } // namespace WebKit |
19 | 20 |
20 namespace android_webview { | 21 namespace android_webview { |
21 | 22 |
(...skipping 18 matching lines...) Expand all Loading... |
40 | 41 |
41 void OnDocumentHasImagesRequest(int id); | 42 void OnDocumentHasImagesRequest(int id); |
42 | 43 |
43 void OnDoHitTest(int view_x, int view_y); | 44 void OnDoHitTest(int view_x, int view_y); |
44 | 45 |
45 void OnSetTextZoomLevel(double zoom_level); | 46 void OnSetTextZoomLevel(double zoom_level); |
46 | 47 |
47 void OnResetScrollAndScaleState(); | 48 void OnResetScrollAndScaleState(); |
48 | 49 |
49 void OnSetInitialPageScale(double page_scale_factor); | 50 void OnSetInitialPageScale(double page_scale_factor); |
| 51 void OnSetBackgroundColor(SkColor c); |
50 | 52 |
51 void UpdatePageScaleFactor(); | 53 void UpdatePageScaleFactor(); |
52 | 54 |
53 // WebKit::WebPermissionClient implementation. | 55 // WebKit::WebPermissionClient implementation. |
54 virtual bool allowDisplayingInsecureContent( | 56 virtual bool allowDisplayingInsecureContent( |
55 WebKit::WebFrame* frame, | 57 WebKit::WebFrame* frame, |
56 bool enabled_per_settings, | 58 bool enabled_per_settings, |
57 const WebKit::WebSecurityOrigin& origin, | 59 const WebKit::WebSecurityOrigin& origin, |
58 const WebKit::WebURL& url) OVERRIDE; | 60 const WebKit::WebURL& url) OVERRIDE; |
59 virtual bool allowRunningInsecureContent( | 61 virtual bool allowRunningInsecureContent( |
60 WebKit::WebFrame* frame, | 62 WebKit::WebFrame* frame, |
61 bool enabled_per_settings, | 63 bool enabled_per_settings, |
62 const WebKit::WebSecurityOrigin& origin, | 64 const WebKit::WebSecurityOrigin& origin, |
63 const WebKit::WebURL& url) OVERRIDE; | 65 const WebKit::WebURL& url) OVERRIDE; |
64 | 66 |
65 bool capture_picture_enabled_; | 67 bool capture_picture_enabled_; |
66 | 68 |
67 float page_scale_factor_; | 69 float page_scale_factor_; |
68 | 70 |
69 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); | 71 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); |
70 }; | 72 }; |
71 | 73 |
72 } // namespace android_webview | 74 } // namespace android_webview |
73 | 75 |
74 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 76 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
OLD | NEW |