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

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

Issue 1363093004: Add BrowserSelectFileDialogTest.OpenCloseFileDialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enable the test and skip libglib-2.0 from LSan report Created 5 years, 2 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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const SelectFileDialog::FileTypeInfo* file_types, 43 const SelectFileDialog::FileTypeInfo* file_types,
44 int file_type_index, 44 int file_type_index,
45 const std::string& default_extension, 45 const std::string& default_extension,
46 gfx::NativeWindow owning_window, 46 gfx::NativeWindow owning_window,
47 void* params) override; 47 void* params) override;
48 48
49 static bool RegisterSelectFileDialog(JNIEnv* env); 49 static bool RegisterSelectFileDialog(JNIEnv* env);
50 50
51 protected: 51 protected:
52 ~SelectFileDialogImpl() override; 52 ~SelectFileDialogImpl() override;
53 void CloseImpl() override;
53 54
54 private: 55 private:
55 SelectFileDialogImpl(Listener* listener, SelectFilePolicy* policy); 56 SelectFileDialogImpl(Listener* listener, SelectFilePolicy* policy);
56 57
57 bool HasMultipleFileTypeChoicesImpl() override; 58 bool HasMultipleFileTypeChoicesImpl() override;
58 59
59 base::android::ScopedJavaGlobalRef<jobject> java_object_; 60 base::android::ScopedJavaGlobalRef<jobject> java_object_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); 62 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl);
62 }; 63 };
63 64
64 SelectFileDialog* CreateAndroidSelectFileDialog( 65 SelectFileDialog* CreateAndroidSelectFileDialog(
65 SelectFileDialog::Listener* listener, 66 SelectFileDialog::Listener* listener,
66 SelectFilePolicy* policy); 67 SelectFilePolicy* policy);
67 68
68 } // namespace ui 69 } // namespace ui
69 70
70 #endif // UI_SHELL_DIALOGS_ANDROID_SELECT_FILE_DIALOG_ANDROID_H_ 71 #endif // UI_SHELL_DIALOGS_ANDROID_SELECT_FILE_DIALOG_ANDROID_H_
71 72
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698