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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 1385543003: Have RenderWidgetHostViewAndroid own sync compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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
« no previous file with comments | « no previous file | android_webview/native/aw_contents.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_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 private: 247 private:
248 void InitAutofillIfNecessary(bool enabled); 248 void InitAutofillIfNecessary(bool enabled);
249 249
250 // Geolocation API support 250 // Geolocation API support
251 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); 251 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>);
252 void HideGeolocationPrompt(const GURL& origin); 252 void HideGeolocationPrompt(const GURL& origin);
253 253
254 void SetDipScaleInternal(float dip_scale); 254 void SetDipScaleInternal(float dip_scale);
255 255
256 JavaObjectWeakGlobalRef java_ref_; 256 JavaObjectWeakGlobalRef java_ref_;
257 BrowserViewRenderer browser_view_renderer_; // Must outlive |web_contents_|.
257 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; 258 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_;
258 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; 259 scoped_ptr<AwContentsClientBridge> contents_client_bridge_;
259 scoped_ptr<content::WebContents> web_contents_; 260 scoped_ptr<content::WebContents> web_contents_;
260 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; 261 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_;
261 scoped_ptr<FindHelper> find_helper_; 262 scoped_ptr<FindHelper> find_helper_;
262 scoped_ptr<IconHelper> icon_helper_; 263 scoped_ptr<IconHelper> icon_helper_;
263 scoped_ptr<AwContents> pending_contents_; 264 scoped_ptr<AwContents> pending_contents_;
264 BrowserViewRenderer browser_view_renderer_;
265 scoped_ptr<AwPdfExporter> pdf_exporter_; 265 scoped_ptr<AwPdfExporter> pdf_exporter_;
266 scoped_ptr<PermissionRequestHandler> permission_request_handler_; 266 scoped_ptr<PermissionRequestHandler> permission_request_handler_;
267 scoped_refptr<AwMessagePortMessageFilter> message_port_message_filter_; 267 scoped_refptr<AwMessagePortMessageFilter> message_port_message_filter_;
268 268
269 // GURL is supplied by the content layer as requesting frame. 269 // GURL is supplied by the content layer as requesting frame.
270 // Callback is supplied by the content layer, and is invoked with the result 270 // Callback is supplied by the content layer, and is invoked with the result
271 // from the permission prompt. 271 // from the permission prompt.
272 typedef std::pair<const GURL, base::Callback<void(bool)> > OriginCallback; 272 typedef std::pair<const GURL, base::Callback<void(bool)> > OriginCallback;
273 // The first element in the list is always the currently pending request. 273 // The first element in the list is always the currently pending request.
274 std::list<OriginCallback> pending_geolocation_prompts_; 274 std::list<OriginCallback> pending_geolocation_prompts_;
275 275
276 GLViewRendererManager::Key renderer_manager_key_; 276 GLViewRendererManager::Key renderer_manager_key_;
277 277
278 DISALLOW_COPY_AND_ASSIGN(AwContents); 278 DISALLOW_COPY_AND_ASSIGN(AwContents);
279 }; 279 };
280 280
281 bool RegisterAwContents(JNIEnv* env); 281 bool RegisterAwContents(JNIEnv* env);
282 282
283 } // namespace android_webview 283 } // namespace android_webview
284 284
285 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 285 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698