OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |