| 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 #include "base/logging.h" | 5 #include "base/logging.h" |
| 6 | 6 |
| 7 #include "chrome/browser/bookmarks/bookmark_editor.h" | 7 #include "chrome/browser/bookmarks/bookmark_editor.h" |
| 8 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 8 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 9 #include "chrome/browser/first_run/first_run.h" | 9 #include "chrome/browser/first_run/first_run.h" |
| 10 #include "chrome/browser/first_run/first_run_import_observer.h" | 10 #include "chrome/browser/first_run/first_run_import_observer.h" |
| 11 #include "chrome/browser/importer/importer_progress_dialog.h" | 11 #include "chrome/browser/importer/importer_progress_dialog.h" |
| 12 #include "chrome/browser/ui/views/first_run_bubble.h" | 12 #include "chrome/browser/ui/views/first_run_bubble.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 14 | 14 |
| 15 #if !defined(OS_WIN) |
| 16 #include "chrome/browser/ui/gtk/certificate_dialogs.h" |
| 17 #endif |
| 18 |
| 19 #if defined(USE_NSS) |
| 20 #include "chrome/browser/ui/crypto_module_password_dialog.h" |
| 21 #endif |
| 22 |
| 15 class SSLClientAuthHandler; | 23 class SSLClientAuthHandler; |
| 16 class TabContents; | 24 class TabContents; |
| 17 class TabContentsWrapper; | 25 class TabContentsWrapper; |
| 26 namespace crypto { |
| 27 class CryptoModuleBlockingPasswordDelegate; |
| 28 } |
| 18 namespace net { | 29 namespace net { |
| 19 class SSLCertRequestInfo; | 30 class SSLCertRequestInfo; |
| 20 class X509Certificate; | 31 class X509Certificate; |
| 21 } | 32 } |
| 22 namespace views { | 33 namespace views { |
| 23 class Widget; | 34 class Widget; |
| 24 } | 35 } |
| 25 | 36 |
| 37 #if !defined(OS_WIN) |
| 38 class EditSearchEngineControllerDelegate; |
| 39 class TemplateURL; |
| 40 #endif |
| 41 |
| 26 namespace browser { | 42 namespace browser { |
| 27 | 43 |
| 28 // Declared in browser_dialogs.h so others don't need to depend on our header. | 44 // Declared in browser_dialogs.h so others don't need to depend on our header. |
| 29 void ShowTaskManager() { | 45 void ShowTaskManager() { |
| 30 // TODO(beng): | 46 // TODO(beng): |
| 31 NOTIMPLEMENTED(); | 47 NOTIMPLEMENTED(); |
| 32 } | 48 } |
| 33 | 49 |
| 34 void ShowBackgroundPages() { | 50 void ShowBackgroundPages() { |
| 35 // TODO(beng): | 51 // TODO(beng): |
| (...skipping 29 matching lines...) Expand all Loading... |
| 65 void ShowHungRendererDialog(TabContents* contents) { | 81 void ShowHungRendererDialog(TabContents* contents) { |
| 66 // TODO(beng): | 82 // TODO(beng): |
| 67 NOTIMPLEMENTED(); | 83 NOTIMPLEMENTED(); |
| 68 } | 84 } |
| 69 | 85 |
| 70 void HideHungRendererDialog(TabContents* contents) { | 86 void HideHungRendererDialog(TabContents* contents) { |
| 71 // TODO(beng): | 87 // TODO(beng): |
| 72 NOTIMPLEMENTED(); | 88 NOTIMPLEMENTED(); |
| 73 } | 89 } |
| 74 | 90 |
| 91 #if defined(USE_NSS) |
| 92 crypto::CryptoModuleBlockingPasswordDelegate* |
| 93 NewCryptoModuleBlockingDialogDelegate( |
| 94 CryptoModulePasswordReason reason, |
| 95 const std::string& server) { |
| 96 // TODO(saintlou): |
| 97 NOTIMPLEMENTED(); |
| 98 return NULL; |
| 99 } |
| 100 #endif |
| 101 |
| 102 #if !defined(OS_WIN) |
| 103 void EditSearchEngine( |
| 104 gfx::NativeWindow, |
| 105 const TemplateURL*, |
| 106 EditSearchEngineControllerDelegate*, |
| 107 Profile*) { |
| 108 // TODO(saintlou): |
| 109 NOTIMPLEMENTED(); |
| 110 } |
| 111 |
| 112 void ShowRepostFormWarningDialog(gfx::NativeWindow parent_window, |
| 113 TabContents* tab_contents) { |
| 114 // TODO(saintlou): |
| 115 NOTIMPLEMENTED(); |
| 116 } |
| 117 |
| 118 void ShowCryptoModulePasswordDialog(const std::string& module_name, |
| 119 bool retry, |
| 120 CryptoModulePasswordReason reason, |
| 121 const std::string& server, |
| 122 CryptoModulePasswordCallback* callback) { |
| 123 // TODO(saintlou): |
| 124 NOTIMPLEMENTED(); |
| 125 } |
| 126 #endif |
| 127 |
| 75 } // namespace browser | 128 } // namespace browser |
| 76 | 129 |
| 77 | 130 |
| 78 void ShowCertificateViewer(gfx::NativeWindow parent, | 131 void ShowCertificateViewer(gfx::NativeWindow parent, |
| 79 net::X509Certificate* cert) { | 132 net::X509Certificate* cert) { |
| 80 // TODO(beng); | 133 // TODO(beng); |
| 81 NOTIMPLEMENTED(); | 134 NOTIMPLEMENTED(); |
| 82 } | 135 } |
| 83 | 136 |
| 84 // static | 137 // static |
| 85 FirstRunBubble* FirstRunBubble::Show( | 138 FirstRunBubble* FirstRunBubble::Show( |
| 86 Profile* profile, | 139 Profile* profile, |
| 87 views::Widget* parent, | 140 views::Widget* parent, |
| 88 const gfx::Rect& position_relative_to, | 141 const gfx::Rect& position_relative_to, |
| 89 views::BubbleBorder::ArrowLocation arrow_location, | 142 views::BubbleBorder::ArrowLocation arrow_location, |
| 90 FirstRun::BubbleType bubble_type) { | 143 FirstRun::BubbleType bubble_type) { |
| 91 // TODO(beng); | 144 // TODO(beng); |
| 92 NOTIMPLEMENTED(); | 145 NOTIMPLEMENTED(); |
| 93 return NULL; | 146 return NULL; |
| 94 } | 147 } |
| 95 | 148 |
| 149 #if !defined(OS_WIN) |
| 150 void ShowCertSelectFileDialog(SelectFileDialog* select_file_dialog, |
| 151 SelectFileDialog::Type type, |
| 152 const FilePath& suggested_path, |
| 153 TabContents* tab_contents, |
| 154 gfx::NativeWindow parent, |
| 155 void* params) { |
| 156 // TODO(saintlou); |
| 157 NOTIMPLEMENTED(); |
| 158 } |
| 159 |
| 160 void ShowCertExportDialog(TabContents* tab_contents, |
| 161 gfx::NativeWindow parent, |
| 162 net::X509Certificate::OSCertHandle cert) { |
| 163 // TODO(saintlou); |
| 164 NOTIMPLEMENTED(); |
| 165 } |
| 166 #endif |
| 167 |
| 96 // static | 168 // static |
| 97 void BookmarkEditor::Show(gfx::NativeWindow parent_hwnd, | 169 void BookmarkEditor::Show(gfx::NativeWindow parent_hwnd, |
| 98 Profile* profile, | 170 Profile* profile, |
| 99 const BookmarkNode* parent, | 171 const BookmarkNode* parent, |
| 100 const EditDetails& details, | 172 const EditDetails& details, |
| 101 Configuration configuration) { | 173 Configuration configuration) { |
| 102 // TODO(beng); | 174 // TODO(beng); |
| 103 NOTIMPLEMENTED(); | 175 NOTIMPLEMENTED(); |
| 104 } | 176 } |
| 105 | 177 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 116 NOTIMPLEMENTED(); | 188 NOTIMPLEMENTED(); |
| 117 } | 189 } |
| 118 | 190 |
| 119 } // namespace importer | 191 } // namespace importer |
| 120 | 192 |
| 121 // static | 193 // static |
| 122 void ExternalProtocolHandler::RunExternalProtocolDialog( | 194 void ExternalProtocolHandler::RunExternalProtocolDialog( |
| 123 const GURL& url, int render_process_host_id, int routing_id) { | 195 const GURL& url, int render_process_host_id, int routing_id) { |
| 124 } | 196 } |
| 125 | 197 |
| OLD | NEW |