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_UI_VIEWS_FILE_MANAGER_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FILE_MANAGER_DIALOG_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FILE_MANAGER_DIALOG_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FILE_MANAGER_DIALOG_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Closes the dialog and cleans up callbacks and listeners. | 64 // Closes the dialog and cleans up callbacks and listeners. |
65 void Close(); | 65 void Close(); |
66 | 66 |
67 // Posts a task to close the dialog. | 67 // Posts a task to close the dialog. |
68 void PostTaskToClose(); | 68 void PostTaskToClose(); |
69 | 69 |
70 // Adds this to the list of pending dialogs, used for testing. | 70 // Adds this to the list of pending dialogs, used for testing. |
71 void AddPending(int32 tab_id); | 71 void AddPending(int32 tab_id); |
72 | 72 |
| 73 // Check if the list of pending dialogs contains dialog for |tab_id|. |
| 74 static bool PendingExists(int32 tab_id); |
| 75 |
73 // Returns if the dialog has mutiple file type choices | 76 // Returns if the dialog has mutiple file type choices |
74 virtual bool HasMultipleFileTypeChoicesImpl(); | 77 virtual bool HasMultipleFileTypeChoicesImpl(); |
75 | 78 |
76 bool hasMultipleFileTypeChoices_; | 79 bool hasMultipleFileTypeChoices_; |
77 void* params_; | 80 void* params_; |
78 | 81 |
79 // Host for the extension that implements this dialog. | 82 // Host for the extension that implements this dialog. |
80 scoped_refptr<ExtensionDialog> extension_dialog_; | 83 scoped_refptr<ExtensionDialog> extension_dialog_; |
81 | 84 |
82 // ID of the tab that spawned this dialog, used to route callbacks. | 85 // ID of the tab that spawned this dialog, used to route callbacks. |
83 int32 tab_id_; | 86 int32 tab_id_; |
84 | 87 |
85 gfx::NativeWindow owner_window_; | 88 gfx::NativeWindow owner_window_; |
86 | 89 |
87 DISALLOW_COPY_AND_ASSIGN(FileManagerDialog); | 90 DISALLOW_COPY_AND_ASSIGN(FileManagerDialog); |
88 }; | 91 }; |
89 | 92 |
90 #endif // CHROME_BROWSER_UI_VIEWS_FILE_MANAGER_DIALOG_H_ | 93 #endif // CHROME_BROWSER_UI_VIEWS_FILE_MANAGER_DIALOG_H_ |
OLD | NEW |