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

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

Issue 11471040: [Android WebView] Convert context menu callback to long press (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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_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 <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const GURL& origin_url, 56 const GURL& origin_url,
57 const string16& message_text, 57 const string16& message_text,
58 const string16& default_prompt_text, 58 const string16& default_prompt_text,
59 const base::android::ScopedJavaLocalRef<jobject>& js_result); 59 const base::android::ScopedJavaLocalRef<jobject>& js_result);
60 60
61 void RunBeforeUnloadDialog( 61 void RunBeforeUnloadDialog(
62 const GURL& origin_url, 62 const GURL& origin_url,
63 const string16& message_text, 63 const string16& message_text,
64 const base::android::ScopedJavaLocalRef<jobject>& js_result); 64 const base::android::ScopedJavaLocalRef<jobject>& js_result);
65 65
66 // TODO(boliu): Comment.
67 void ConvertContextMenuCallbackToLongPress();
joth 2012/12/08 01:29:12 I'd prefer the name to either reflect when it gets
boliu 2012/12/10 20:19:28 Done.
68
66 // |handler| is an instance of 69 // |handler| is an instance of
67 // org.chromium.android_webview.AwHttpAuthHandler. 70 // org.chromium.android_webview.AwHttpAuthHandler.
68 void onReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, 71 void onReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler,
69 const std::string& host, 72 const std::string& host,
70 const std::string& realm); 73 const std::string& realm);
71 74
72 // Methods called from Java. 75 // Methods called from Java.
73 jint GetWebContents(JNIEnv* env, jobject obj); 76 jint GetWebContents(JNIEnv* env, jobject obj);
74 void SetWebContents(JNIEnv* env, jobject obj, jint web_contents); 77 void SetWebContents(JNIEnv* env, jobject obj, jint web_contents);
75 78
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 scoped_ptr<content::WebContents> pending_contents_; 136 scoped_ptr<content::WebContents> pending_contents_;
134 137
135 DISALLOW_COPY_AND_ASSIGN(AwContents); 138 DISALLOW_COPY_AND_ASSIGN(AwContents);
136 }; 139 };
137 140
138 bool RegisterAwContents(JNIEnv* env); 141 bool RegisterAwContents(JNIEnv* env);
139 142
140 } // namespace android_webview 143 } // namespace android_webview
141 144
142 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 145 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698