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

Side by Side Diff: android_webview/native/aw_web_contents_delegate.cc

Issue 691823002: Add WebContents source to methods in WebContentsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « android_webview/native/aw_web_contents_delegate.h ('k') | apps/custom_launcher_page_contents.h » ('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 #include "android_webview/native/aw_web_contents_delegate.h" 5 #include "android_webview/native/aw_web_contents_delegate.h"
6 6
7 #include "android_webview/browser/aw_javascript_dialog_manager.h" 7 #include "android_webview/browser/aw_javascript_dialog_manager.h"
8 #include "android_webview/browser/find_helper.h" 8 #include "android_webview/browser/find_helper.h"
9 #include "android_webview/native/aw_contents.h" 9 #include "android_webview/native/aw_contents.h"
10 #include "android_webview/native/aw_contents_io_thread_client_impl.h" 10 #include "android_webview/native/aw_contents_io_thread_client_impl.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 JNIEnv* env, 48 JNIEnv* env,
49 jobject obj) 49 jobject obj)
50 : WebContentsDelegateAndroid(env, obj), 50 : WebContentsDelegateAndroid(env, obj),
51 is_fullscreen_(false) { 51 is_fullscreen_(false) {
52 } 52 }
53 53
54 AwWebContentsDelegate::~AwWebContentsDelegate() { 54 AwWebContentsDelegate::~AwWebContentsDelegate() {
55 } 55 }
56 56
57 content::JavaScriptDialogManager* 57 content::JavaScriptDialogManager*
58 AwWebContentsDelegate::GetJavaScriptDialogManager() { 58 AwWebContentsDelegate::GetJavaScriptDialogManager(WebContents* source) {
59 return g_javascript_dialog_manager.Pointer(); 59 return g_javascript_dialog_manager.Pointer();
60 } 60 }
61 61
62 void AwWebContentsDelegate::FindReply(WebContents* web_contents, 62 void AwWebContentsDelegate::FindReply(WebContents* web_contents,
63 int request_id, 63 int request_id,
64 int number_of_matches, 64 int number_of_matches,
65 const gfx::Rect& selection_rect, 65 const gfx::Rect& selection_rect,
66 int active_match_ordinal, 66 int active_match_ordinal,
67 bool final_update) { 67 bool final_update) {
68 AwContents* aw_contents = AwContents::FromWebContents(web_contents); 68 AwContents* aw_contents = AwContents::FromWebContents(web_contents);
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 DVLOG(0) << "File Chooser result: mode = " << mode 267 DVLOG(0) << "File Chooser result: mode = " << mode
268 << ", file paths = " << JoinString(file_path_str, ":"); 268 << ", file paths = " << JoinString(file_path_str, ":");
269 rvh->FilesSelectedInChooser(files, mode); 269 rvh->FilesSelectedInChooser(files, mode);
270 } 270 }
271 271
272 bool RegisterAwWebContentsDelegate(JNIEnv* env) { 272 bool RegisterAwWebContentsDelegate(JNIEnv* env) {
273 return RegisterNativesImpl(env); 273 return RegisterNativesImpl(env);
274 } 274 }
275 275
276 } // namespace android_webview 276 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.h ('k') | apps/custom_launcher_page_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698