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

Side by Side Diff: content/browser/android/date_time_chooser_android.h

Issue 1489453003: jni: Pass method parameters as JavaParamRef in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_BROWSER_ANDROID_DATE_TIME_CHOOSER_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_DATE_TIME_CHOOSER_ANDROID_H_
6 #define CONTENT_BROWSER_ANDROID_DATE_TIME_CHOOSER_ANDROID_H_ 6 #define CONTENT_BROWSER_ANDROID_DATE_TIME_CHOOSER_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 void ShowDialog(gfx::NativeWindow native_window, 31 void ShowDialog(gfx::NativeWindow native_window,
32 RenderViewHost* host, 32 RenderViewHost* host,
33 ui::TextInputType dialog_type, 33 ui::TextInputType dialog_type,
34 double dialog_value, 34 double dialog_value,
35 double min, 35 double min,
36 double max, 36 double max,
37 double step, 37 double step,
38 const std::vector<DateTimeSuggestion>& suggestions); 38 const std::vector<DateTimeSuggestion>& suggestions);
39 39
40 // Replaces the current value 40 // Replaces the current value
41 void ReplaceDateTime(JNIEnv* env, jobject, jdouble value); 41 void ReplaceDateTime(JNIEnv* env,
42 const base::android::JavaRef<jobject>&,
43 jdouble value);
42 44
43 // Closes the dialog without propagating any changes. 45 // Closes the dialog without propagating any changes.
44 void CancelDialog(JNIEnv* env, jobject); 46 void CancelDialog(JNIEnv* env, const base::android::JavaRef<jobject>&);
45 47
46 private: 48 private:
47 RenderViewHost* host_; 49 RenderViewHost* host_;
48 50
49 base::android::ScopedJavaGlobalRef<jobject> j_date_time_chooser_; 51 base::android::ScopedJavaGlobalRef<jobject> j_date_time_chooser_;
50 52
51 DISALLOW_COPY_AND_ASSIGN(DateTimeChooserAndroid); 53 DISALLOW_COPY_AND_ASSIGN(DateTimeChooserAndroid);
52 }; 54 };
53 55
54 // Native JNI methods 56 // Native JNI methods
55 bool RegisterDateTimeChooserAndroid(JNIEnv* env); 57 bool RegisterDateTimeChooserAndroid(JNIEnv* env);
56 58
57 } // namespace content 59 } // namespace content
58 60
59 #endif // CONTENT_BROWSER_ANDROID_DATE_TIME_CHOOSER_ANDROID_H_ 61 #endif // CONTENT_BROWSER_ANDROID_DATE_TIME_CHOOSER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698