| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 protected: | 66 protected: |
| 67 // SelectFileDialog implementation. | 67 // SelectFileDialog implementation. |
| 68 void SelectFileImpl(Type type, | 68 void SelectFileImpl(Type type, |
| 69 const base::string16& title, | 69 const base::string16& title, |
| 70 const base::FilePath& default_path, | 70 const base::FilePath& default_path, |
| 71 const FileTypeInfo* file_types, | 71 const FileTypeInfo* file_types, |
| 72 int file_type_index, | 72 int file_type_index, |
| 73 const base::FilePath::StringType& default_extension, | 73 const base::FilePath::StringType& default_extension, |
| 74 gfx::NativeWindow owning_window, | 74 gfx::NativeWindow owning_window, |
| 75 void* params) override; | 75 void* params) override; |
| 76 void CloseImpl() override; |
| 76 | 77 |
| 77 private: | 78 private: |
| 78 friend class SelectFileDialogExtensionBrowserTest; | 79 friend class SelectFileDialogExtensionBrowserTest; |
| 79 friend class SelectFileDialogExtensionTest; | 80 friend class SelectFileDialogExtensionTest; |
| 80 | 81 |
| 81 // Object is ref-counted, use Create(). | 82 // Object is ref-counted, use Create(). |
| 82 explicit SelectFileDialogExtension(SelectFileDialog::Listener* listener, | 83 explicit SelectFileDialogExtension(SelectFileDialog::Listener* listener, |
| 83 ui::SelectFilePolicy* policy); | 84 ui::SelectFilePolicy* policy); |
| 84 ~SelectFileDialogExtension() override; | 85 ~SelectFileDialogExtension() override; |
| 85 | 86 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 }; | 120 }; |
| 120 SelectionType selection_type_; | 121 SelectionType selection_type_; |
| 121 std::vector<ui::SelectedFileInfo> selection_files_; | 122 std::vector<ui::SelectedFileInfo> selection_files_; |
| 122 int selection_index_; | 123 int selection_index_; |
| 123 void* params_; | 124 void* params_; |
| 124 | 125 |
| 125 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogExtension); | 126 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogExtension); |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 #endif // CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ | 129 #endif // CHROME_BROWSER_UI_VIEWS_SELECT_FILE_DIALOG_EXTENSION_H_ |
| OLD | NEW |