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

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

Issue 23026006: Add support for color input datalist on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H _ 5 #ifndef COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H _
6 #define COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H _ 6 #define COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROID_H _
7 7
8 #include "base/android/jni_helper.h" 8 #include "base/android/jni_helper.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Binds this WebContentsDelegateAndroid to the passed WebContents instance, 46 // Binds this WebContentsDelegateAndroid to the passed WebContents instance,
47 // such that when that WebContents is destroyed, this 47 // such that when that WebContents is destroyed, this
48 // WebContentsDelegateAndroid instance will be destroyed too. 48 // WebContentsDelegateAndroid instance will be destroyed too.
49 void SetOwnerWebContents(content::WebContents* contents); 49 void SetOwnerWebContents(content::WebContents* contents);
50 50
51 // Overridden from WebContentsDelegate: 51 // Overridden from WebContentsDelegate:
52 virtual content::WebContents* OpenURLFromTab( 52 virtual content::WebContents* OpenURLFromTab(
53 content::WebContents* source, 53 content::WebContents* source,
54 const content::OpenURLParams& params) OVERRIDE; 54 const content::OpenURLParams& params) OVERRIDE;
55 virtual content::ColorChooser* OpenColorChooser(content::WebContents* source, 55 virtual content::ColorChooser* OpenColorChooser(
56 SkColor color) OVERRIDE; 56 content::WebContents* source,
57 SkColor color,
58 const std::vector<content::ColorSuggestion>& suggestions) OVERRIDE;
57 virtual void NavigationStateChanged(const content::WebContents* source, 59 virtual void NavigationStateChanged(const content::WebContents* source,
58 unsigned changed_flags) OVERRIDE; 60 unsigned changed_flags) OVERRIDE;
59 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; 61 virtual void ActivateContents(content::WebContents* contents) OVERRIDE;
60 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE; 62 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE;
61 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; 63 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
62 virtual void LoadProgressChanged(content::WebContents* source, 64 virtual void LoadProgressChanged(content::WebContents* source,
63 double load_progress) OVERRIDE; 65 double load_progress) OVERRIDE;
64 virtual void RendererUnresponsive(content::WebContents* source) OVERRIDE; 66 virtual void RendererUnresponsive(content::WebContents* source) OVERRIDE;
65 virtual void RendererResponsive(content::WebContents* source) OVERRIDE; 67 virtual void RendererResponsive(content::WebContents* source) OVERRIDE;
66 virtual void CloseContents(content::WebContents* source) OVERRIDE; 68 virtual void CloseContents(content::WebContents* source) OVERRIDE;
(...skipping 26 matching lines...) Expand all
93 // strong reference to that object as long as they want to receive callbacks 95 // strong reference to that object as long as they want to receive callbacks
94 // on it. Using a weak ref here allows it to be correctly GCed. 96 // on it. Using a weak ref here allows it to be correctly GCed.
95 JavaObjectWeakGlobalRef weak_java_delegate_; 97 JavaObjectWeakGlobalRef weak_java_delegate_;
96 }; 98 };
97 99
98 bool RegisterWebContentsDelegateAndroid(JNIEnv* env); 100 bool RegisterWebContentsDelegateAndroid(JNIEnv* env);
99 101
100 } // namespace web_contents_delegate_android 102 } // namespace web_contents_delegate_android
101 103
102 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI D_H_ 104 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_WEB_CONTENTS_DELEGATE_ANDROI D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698