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

Side by Side Diff: components/web_contents_delegate_android/web_contents_delegate_android.cc

Issue 23593006: Add support for datalist to input type color Base URL: https://chromium.googlesource.com/chromium/src.git@colorstretch
Patch Set: Created 7 years, 3 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
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 "components/web_contents_delegate_android/web_contents_delegate_android .h" 5 #include "components/web_contents_delegate_android/web_contents_delegate_android .h"
6 6
7 #include <android/keycodes.h> 7 #include <android/keycodes.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 ScopedJavaLocalRef<jobject> 45 ScopedJavaLocalRef<jobject>
46 WebContentsDelegateAndroid::GetJavaDelegate(JNIEnv* env) const { 46 WebContentsDelegateAndroid::GetJavaDelegate(JNIEnv* env) const {
47 return weak_java_delegate_.get(env); 47 return weak_java_delegate_.get(env);
48 } 48 }
49 49
50 // ---------------------------------------------------------------------------- 50 // ----------------------------------------------------------------------------
51 // WebContentsDelegate methods 51 // WebContentsDelegate methods
52 // ---------------------------------------------------------------------------- 52 // ----------------------------------------------------------------------------
53 53
54 ColorChooser* WebContentsDelegateAndroid::OpenColorChooser(WebContents* source, 54 ColorChooser* WebContentsDelegateAndroid::OpenColorChooser(
55 SkColor color) { 55 WebContents* source,
56 return new ColorChooserAndroid(source, color); 56 SkColor color,
57 const std::vector<content::ColorSuggestion>& suggestions) {
58 return new ColorChooserAndroid(source, color, suggestions);
57 } 59 }
58 60
59 // OpenURLFromTab() will be called when we're performing a browser-intiated 61 // OpenURLFromTab() will be called when we're performing a browser-intiated
60 // navigation. The most common scenario for this is opening new tabs (see 62 // navigation. The most common scenario for this is opening new tabs (see
61 // RenderViewImpl::decidePolicyForNavigation for more details). 63 // RenderViewImpl::decidePolicyForNavigation for more details).
62 WebContents* WebContentsDelegateAndroid::OpenURLFromTab( 64 WebContents* WebContentsDelegateAndroid::OpenURLFromTab(
63 WebContents* source, 65 WebContents* source,
64 const content::OpenURLParams& params) { 66 const content::OpenURLParams& params) {
65 const GURL& url = params.url; 67 const GURL& url = params.url;
66 WindowOpenDisposition disposition = params.disposition; 68 WindowOpenDisposition disposition = params.disposition;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 330
329 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) { 331 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) {
330 if (!HasClass(env, kWebContentsDelegateAndroidClassPath)) { 332 if (!HasClass(env, kWebContentsDelegateAndroidClassPath)) {
331 DLOG(ERROR) << "Unable to find class WebContentsDelegateAndroid!"; 333 DLOG(ERROR) << "Unable to find class WebContentsDelegateAndroid!";
332 return false; 334 return false;
333 } 335 }
334 return RegisterNativesImpl(env); 336 return RegisterNativesImpl(env);
335 } 337 }
336 338
337 } // namespace web_contents_delegate_android 339 } // namespace web_contents_delegate_android
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698