| OLD | NEW |
| 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 CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // SelectFileDialog implementation. | 60 // SelectFileDialog implementation. |
| 61 virtual void SelectFileImpl(Type type, | 61 virtual void SelectFileImpl(Type type, |
| 62 const string16& title, | 62 const string16& title, |
| 63 const FilePath& default_path, | 63 const FilePath& default_path, |
| 64 const FileTypeInfo* file_types, | 64 const FileTypeInfo* file_types, |
| 65 int file_type_index, | 65 int file_type_index, |
| 66 const FilePath::StringType& default_extension, | 66 const FilePath::StringType& default_extension, |
| 67 gfx::NativeWindow owning_window, | 67 gfx::NativeWindow owning_window, |
| 68 void* params) OVERRIDE; | 68 void* params) OVERRIDE; |
| 69 | 69 |
| 70 | |
| 71 private: | 70 private: |
| 72 friend class SelectFileDialogExtensionBrowserTest; | 71 friend class SelectFileDialogExtensionBrowserTest; |
| 73 friend class SelectFileDialogExtensionTest; | 72 friend class SelectFileDialogExtensionTest; |
| 74 | 73 |
| 75 // Object is ref-counted, use Create(). | 74 // Object is ref-counted, use Create(). |
| 76 explicit SelectFileDialogExtension(SelectFileDialog::Listener* listener, | 75 explicit SelectFileDialogExtension(SelectFileDialog::Listener* listener, |
| 77 ui::SelectFilePolicy* policy); | 76 ui::SelectFilePolicy* policy); |
| 78 virtual ~SelectFileDialogExtension(); | 77 virtual ~SelectFileDialogExtension(); |
| 79 | 78 |
| 80 // Invokes the appropriate file selection callback on our listener. | 79 // Invokes the appropriate file selection callback on our listener. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 }; | 112 }; |
| 114 SelectionType selection_type_; | 113 SelectionType selection_type_; |
| 115 std::vector<ui::SelectedFileInfo> selection_files_; | 114 std::vector<ui::SelectedFileInfo> selection_files_; |
| 116 int selection_index_; | 115 int selection_index_; |
| 117 void* params_; | 116 void* params_; |
| 118 | 117 |
| 119 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogExtension); | 118 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogExtension); |
| 120 }; | 119 }; |
| 121 | 120 |
| 122 #endif // CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ | 121 #endif // CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ |
| OLD | NEW |