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