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