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

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

Issue 2502763003: Introduce ViewRoot to forward input/view events to native (Closed)
Patch Set: prevent view_root_ gc'ed Created 4 years 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
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 9
10 #include <list> 10 #include <list>
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 const base::android::JavaParamRef<jobjectArray>& ports); 326 const base::android::JavaParamRef<jobjectArray>& ports);
327 327
328 void GrantFileSchemeAccesstoChildProcess( 328 void GrantFileSchemeAccesstoChildProcess(
329 JNIEnv* env, 329 JNIEnv* env,
330 const base::android::JavaParamRef<jobject>& obj); 330 const base::android::JavaParamRef<jobject>& obj);
331 331
332 void ResumeLoadingCreatedPopupWebContents( 332 void ResumeLoadingCreatedPopupWebContents(
333 JNIEnv* env, 333 JNIEnv* env,
334 const base::android::JavaParamRef<jobject>& obj); 334 const base::android::JavaParamRef<jobject>& obj);
335 335
336 base::android::ScopedJavaLocalRef<jobject> GetViewRoot(JNIEnv* env,
337 const base::android::JavaParamRef<jobject>& obj);
338
336 // content::WebContentsObserver overrides 339 // content::WebContentsObserver overrides
337 void RenderViewHostChanged(content::RenderViewHost* old_host, 340 void RenderViewHostChanged(content::RenderViewHost* old_host,
338 content::RenderViewHost* new_host) override; 341 content::RenderViewHost* new_host) override;
339 342
340 private: 343 private:
341 void InitAutofillIfNecessary(bool enabled); 344 void InitAutofillIfNecessary(bool enabled);
342 345
343 // Geolocation API support 346 // Geolocation API support
344 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); 347 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>);
345 void HideGeolocationPrompt(const GURL& origin); 348 void HideGeolocationPrompt(const GURL& origin);
(...skipping 25 matching lines...) Expand all
371 GLViewRendererManager::Key renderer_manager_key_; 374 GLViewRendererManager::Key renderer_manager_key_;
372 375
373 DISALLOW_COPY_AND_ASSIGN(AwContents); 376 DISALLOW_COPY_AND_ASSIGN(AwContents);
374 }; 377 };
375 378
376 bool RegisterAwContents(JNIEnv* env); 379 bool RegisterAwContents(JNIEnv* env);
377 380
378 } // namespace android_webview 381 } // namespace android_webview
379 382
380 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 383 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwContents.java ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698