| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FILE_SELECT_HELPER_H_ | 5 #ifndef CHROME_BROWSER_FILE_SELECT_HELPER_H_ |
| 6 #define CHROME_BROWSER_FILE_SELECT_HELPER_H_ | 6 #define CHROME_BROWSER_FILE_SELECT_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 // SelectFileDialog::Listener overrides. | 69 // SelectFileDialog::Listener overrides. |
| 70 virtual void FileSelected( | 70 virtual void FileSelected( |
| 71 const FilePath& path, int index, void* params) OVERRIDE; | 71 const FilePath& path, int index, void* params) OVERRIDE; |
| 72 virtual void MultiFilesSelected(const std::vector<FilePath>& files, | 72 virtual void MultiFilesSelected(const std::vector<FilePath>& files, |
| 73 void* params) OVERRIDE; | 73 void* params) OVERRIDE; |
| 74 virtual void FileSelectionCanceled(void* params) OVERRIDE; | 74 virtual void FileSelectionCanceled(void* params) OVERRIDE; |
| 75 | 75 |
| 76 // NotificationObserver overrides. | 76 // NotificationObserver overrides. |
| 77 virtual void Observe(NotificationType type, | 77 virtual void Observe(int type, |
| 78 const NotificationSource& source, | 78 const NotificationSource& source, |
| 79 const NotificationDetails& details) OVERRIDE; | 79 const NotificationDetails& details) OVERRIDE; |
| 80 | 80 |
| 81 // Kicks off a new directory enumeration. | 81 // Kicks off a new directory enumeration. |
| 82 void StartNewEnumeration(const FilePath& path, | 82 void StartNewEnumeration(const FilePath& path, |
| 83 int request_id, | 83 int request_id, |
| 84 RenderViewHost* render_view_host); | 84 RenderViewHost* render_view_host); |
| 85 | 85 |
| 86 // Callbacks from directory enumeration. | 86 // Callbacks from directory enumeration. |
| 87 virtual void OnListFile( | 87 virtual void OnListFile( |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // Called when a direction enumeration is to be done. | 135 // Called when a direction enumeration is to be done. |
| 136 void OnEnumerateDirectory(int request_id, const FilePath& path); | 136 void OnEnumerateDirectory(int request_id, const FilePath& path); |
| 137 | 137 |
| 138 // FileSelectHelper, lazily created. | 138 // FileSelectHelper, lazily created. |
| 139 scoped_ptr<FileSelectHelper> file_select_helper_; | 139 scoped_ptr<FileSelectHelper> file_select_helper_; |
| 140 | 140 |
| 141 DISALLOW_COPY_AND_ASSIGN(FileSelectObserver); | 141 DISALLOW_COPY_AND_ASSIGN(FileSelectObserver); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 #endif // CHROME_BROWSER_FILE_SELECT_HELPER_H_ | 144 #endif // CHROME_BROWSER_FILE_SELECT_HELPER_H_ |
| OLD | NEW |