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/memory/weak_ptr.h" | |
11 #include "content/public/renderer/render_view_observer.h" | 10 #include "content/public/renderer/render_view_observer.h" |
12 #include "skia/ext/refptr.h" | |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPermissionClient.h
" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPermissionClient.h
" |
14 #include "third_party/skia/include/core/SkPicture.h" | |
15 | 12 |
16 namespace WebKit { | 13 namespace WebKit { |
17 | 14 |
18 class WebNode; | 15 class WebNode; |
19 class WebURL; | 16 class WebURL; |
20 | 17 |
21 } // namespace WebKit | 18 } // namespace WebKit |
22 | 19 |
23 namespace android_webview { | 20 namespace android_webview { |
24 | 21 |
(...skipping 12 matching lines...) Expand all Loading... |
37 // RenderView::Observer: | 34 // RenderView::Observer: |
38 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
39 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, | 36 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, |
40 bool is_new_navigation) OVERRIDE; | 37 bool is_new_navigation) OVERRIDE; |
41 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE; | 38 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE; |
42 | 39 |
43 void OnDocumentHasImagesRequest(int id); | 40 void OnDocumentHasImagesRequest(int id); |
44 | 41 |
45 void OnDoHitTest(int view_x, int view_y); | 42 void OnDoHitTest(int view_x, int view_y); |
46 | 43 |
47 void OnEnableCapturePictureCallback(bool enable); | |
48 | |
49 void OnPictureUpdate(skia::RefPtr<SkPicture> picture); | |
50 | |
51 // WebKit::WebPermissionClient implementation. | 44 // WebKit::WebPermissionClient implementation. |
52 virtual bool allowImage(WebKit::WebFrame* frame, | 45 virtual bool allowImage(WebKit::WebFrame* frame, |
53 bool enabledPerSettings, | 46 bool enabledPerSettings, |
54 const WebKit::WebURL& imageURL) OVERRIDE; | 47 const WebKit::WebURL& imageURL) OVERRIDE; |
55 | 48 |
56 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); | 49 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); |
57 }; | 50 }; |
58 | 51 |
59 } // namespace android_webview | 52 } // namespace android_webview |
60 | 53 |
61 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ | 54 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ |
OLD | NEW |