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

Side by Side Diff: ui/shell_dialogs/select_file_dialog_android.h

Issue 897223003: Update {virtual,override,final} to follow C++11 style in ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « ui/native_theme/native_theme_android.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_SHELL_DIALOGS_ANDROID_SELECT_FILE_DIALOG_ANDROID_H_ 5 #ifndef UI_SHELL_DIALOGS_ANDROID_SELECT_FILE_DIALOG_ANDROID_H_
6 #define UI_SHELL_DIALOGS_ANDROID_SELECT_FILE_DIALOG_ANDROID_H_ 6 #define UI_SHELL_DIALOGS_ANDROID_SELECT_FILE_DIALOG_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 13 matching lines...) Expand all
24 jstring display_name); 24 jstring display_name);
25 25
26 void OnMultipleFilesSelected(JNIEnv* env, 26 void OnMultipleFilesSelected(JNIEnv* env,
27 jobject java_object, 27 jobject java_object,
28 jobjectArray filepaths, 28 jobjectArray filepaths,
29 jobjectArray display_names); 29 jobjectArray display_names);
30 30
31 void OnFileNotSelected(JNIEnv* env, jobject java_object); 31 void OnFileNotSelected(JNIEnv* env, jobject java_object);
32 32
33 // From SelectFileDialog 33 // From SelectFileDialog
34 virtual bool IsRunning(gfx::NativeWindow) const override; 34 bool IsRunning(gfx::NativeWindow) const override;
35 virtual void ListenerDestroyed() override; 35 void ListenerDestroyed() override;
36 36
37 // Called when it is time to display the file picker. 37 // Called when it is time to display the file picker.
38 // params is expected to be a vector<string16> with accept_types first and 38 // params is expected to be a vector<string16> with accept_types first and
39 // the capture value as the last element of the vector. 39 // the capture value as the last element of the vector.
40 virtual void SelectFileImpl( 40 void SelectFileImpl(SelectFileDialog::Type type,
41 SelectFileDialog::Type type, 41 const base::string16& title,
42 const base::string16& title, 42 const base::FilePath& default_path,
43 const base::FilePath& default_path, 43 const SelectFileDialog::FileTypeInfo* file_types,
44 const SelectFileDialog::FileTypeInfo* file_types, 44 int file_type_index,
45 int file_type_index, 45 const std::string& default_extension,
46 const std::string& default_extension, 46 gfx::NativeWindow owning_window,
47 gfx::NativeWindow owning_window, 47 void* params) override;
48 void* params) override;
49 48
50 static bool RegisterSelectFileDialog(JNIEnv* env); 49 static bool RegisterSelectFileDialog(JNIEnv* env);
51 50
52 protected: 51 protected:
53 virtual ~SelectFileDialogImpl(); 52 ~SelectFileDialogImpl() override;
54 53
55 private: 54 private:
56 SelectFileDialogImpl(Listener* listener, SelectFilePolicy* policy); 55 SelectFileDialogImpl(Listener* listener, SelectFilePolicy* policy);
57 56
58 virtual bool HasMultipleFileTypeChoicesImpl() override; 57 bool HasMultipleFileTypeChoicesImpl() override;
59 58
60 base::android::ScopedJavaGlobalRef<jobject> java_object_; 59 base::android::ScopedJavaGlobalRef<jobject> java_object_;
61 60
62 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); 61 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl);
63 }; 62 };
64 63
65 SelectFileDialog* CreateAndroidSelectFileDialog( 64 SelectFileDialog* CreateAndroidSelectFileDialog(
66 SelectFileDialog::Listener* listener, 65 SelectFileDialog::Listener* listener,
67 SelectFilePolicy* policy); 66 SelectFilePolicy* policy);
68 67
69 } // namespace ui 68 } // namespace ui
70 69
71 #endif // UI_SHELL_DIALOGS_ANDROID_SELECT_FILE_DIALOG_ANDROID_H_ 70 #endif // UI_SHELL_DIALOGS_ANDROID_SELECT_FILE_DIALOG_ANDROID_H_
72 71
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698