Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: android_webview/renderer/aw_render_view_ext.h

Issue 12211149: Revert 182106 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/renderer/aw_render_view_ext.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPermissionClient.h " 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPermissionClient.h "
14 #include "third_party/skia/include/core/SkPicture.h"
13 15
14 namespace WebKit { 16 namespace WebKit {
15 17
16 class WebNode; 18 class WebNode;
17 class WebURL; 19 class WebURL;
18 20
19 } // namespace WebKit 21 } // namespace WebKit
20 22
21 namespace android_webview { 23 namespace android_webview {
22 24
(...skipping 10 matching lines...) Expand all
33 35
34 private: 36 private:
35 AwRenderViewExt(content::RenderView* render_view); 37 AwRenderViewExt(content::RenderView* render_view);
36 virtual ~AwRenderViewExt(); 38 virtual ~AwRenderViewExt();
37 39
38 // RenderView::Observer: 40 // RenderView::Observer:
39 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
40 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, 42 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame,
41 bool is_new_navigation) OVERRIDE; 43 bool is_new_navigation) OVERRIDE;
42 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE; 44 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE;
43 virtual void DidCommitCompositorFrame() OVERRIDE;
44 45
45 void OnDocumentHasImagesRequest(int id); 46 void OnDocumentHasImagesRequest(int id);
46 47
47 void OnDoHitTest(int view_x, int view_y); 48 void OnDoHitTest(int view_x, int view_y);
48 49
49 void OnEnableCapturePictureCallback(bool enable); 50 void OnEnableCapturePictureCallback(bool enable);
50 51
52 void OnPictureUpdate(skia::RefPtr<SkPicture> picture);
53
51 void OnCapturePictureSync(); 54 void OnCapturePictureSync();
52 55
53 // WebKit::WebPermissionClient implementation. 56 // WebKit::WebPermissionClient implementation.
54 virtual bool allowImage(WebKit::WebFrame* frame, 57 virtual bool allowImage(WebKit::WebFrame* frame,
55 bool enabledPerSettings, 58 bool enabledPerSettings,
56 const WebKit::WebURL& imageURL) OVERRIDE; 59 const WebKit::WebURL& imageURL) OVERRIDE;
57 60
58 bool capture_picture_enabled_;
59
60 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); 61 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt);
61 }; 62 };
62 63
63 } // namespace android_webview 64 } // namespace android_webview
64 65
65 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ 66 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/renderer/aw_render_view_ext.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698