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

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

Issue 11732002: [Android WebView] Update SW rendering to use SkPicture and fix scrolling cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update to use SkPicture and simplify. Created 7 years, 11 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
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/ref_counted.h" 10 #include "base/memory/weak_ptr.h"
11 #include "cc/picture_pile_impl.h"
12 #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 " 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPermissionClient.h "
14 #include "third_party/skia/include/core/SkPicture.h"
14 15
15 namespace WebKit { 16 namespace WebKit {
16 17
17 class WebNode; 18 class WebNode;
18 class WebURL; 19 class WebURL;
19 20
20 } // namespace WebKit 21 } // namespace WebKit
21 22
22 namespace android_webview { 23 namespace android_webview {
23 24
(...skipping 14 matching lines...) Expand all
38 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, 39 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame,
39 bool is_new_navigation) OVERRIDE; 40 bool is_new_navigation) OVERRIDE;
40 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE; 41 virtual void FocusedNodeChanged(const WebKit::WebNode& node) OVERRIDE;
41 42
42 void OnDocumentHasImagesRequest(int id); 43 void OnDocumentHasImagesRequest(int id);
43 44
44 void OnDoHitTest(int view_x, int view_y); 45 void OnDoHitTest(int view_x, int view_y);
45 46
46 void OnEnableCapturePictureCallback(bool enable); 47 void OnEnableCapturePictureCallback(bool enable);
47 48
48 void OnPictureUpdate(scoped_refptr<cc::PicturePileImpl> picture); 49 void OnPictureUpdate(skia::RefPtr<SkPicture> picture);
49 50
50 // WebKit::WebPermissionClient implementation. 51 // WebKit::WebPermissionClient implementation.
51 virtual bool allowImage(WebKit::WebFrame* frame, 52 virtual bool allowImage(WebKit::WebFrame* frame,
52 bool enabledPerSettings, 53 bool enabledPerSettings,
53 const WebKit::WebURL& imageURL) OVERRIDE; 54 const WebKit::WebURL& imageURL) OVERRIDE;
54 55
55 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt); 56 DISALLOW_COPY_AND_ASSIGN(AwRenderViewExt);
56 }; 57 };
57 58
58 } // namespace android_webview 59 } // namespace android_webview
59 60
60 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_ 61 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_VIEW_EXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698