| OLD | NEW |
| 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" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
| 12 #include "ui/shell_dialogs/select_file_dialog.h" | 13 #include "ui/shell_dialogs/select_file_dialog.h" |
| 13 | 14 |
| 14 namespace ui { | 15 namespace ui { |
| 15 | 16 |
| 16 class SelectFileDialogImpl : public SelectFileDialog { | 17 class SelectFileDialogImpl : public SelectFileDialog { |
| 17 public: | 18 public: |
| 18 static SelectFileDialogImpl* Create(Listener* listener, | 19 static SelectFileDialogImpl* Create(Listener* listener, |
| 19 SelectFilePolicy* policy); | 20 SelectFilePolicy* policy); |
| 20 | 21 |
| 21 void OnFileSelected(JNIEnv* env, | 22 void OnFileSelected(JNIEnv* env, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 SelectFileDialog* CreateAndroidSelectFileDialog( | 68 SelectFileDialog* CreateAndroidSelectFileDialog( |
| 68 SelectFileDialog::Listener* listener, | 69 SelectFileDialog::Listener* listener, |
| 69 SelectFilePolicy* policy); | 70 SelectFilePolicy* policy); |
| 70 | 71 |
| 71 } // namespace ui | 72 } // namespace ui |
| 72 | 73 |
| 73 #endif // UI_SHELL_DIALOGS_ANDROID_SELECT_FILE_DIALOG_ANDROID_H_ | 74 #endif // UI_SHELL_DIALOGS_ANDROID_SELECT_FILE_DIALOG_ANDROID_H_ |
| 74 | 75 |
| OLD | NEW |