| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "temp_scaffolding_stubs.h" | 5 #include "temp_scaffolding_stubs.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 NOTIMPLEMENTED(); | 250 NOTIMPLEMENTED(); |
| 251 return NULL; | 251 return NULL; |
| 252 } | 252 } |
| 253 | 253 |
| 254 InfoBar* LinkInfoBarDelegate::CreateInfoBar() { | 254 InfoBar* LinkInfoBarDelegate::CreateInfoBar() { |
| 255 NOTIMPLEMENTED(); | 255 NOTIMPLEMENTED(); |
| 256 return NULL; | 256 return NULL; |
| 257 } | 257 } |
| 258 #endif | 258 #endif |
| 259 | 259 |
| 260 // This should prompt the user if she wants to allow more than one concurrent |
| 261 // download per tab. Until this is in place, always allow multiple downloads. |
| 262 class DownloadRequestDialogDelegateStub |
| 263 : public DownloadRequestDialogDelegate { |
| 264 public: |
| 265 explicit DownloadRequestDialogDelegateStub( |
| 266 DownloadRequestManager::TabDownloadState* host) |
| 267 : DownloadRequestDialogDelegate(host) { DoAccept(); } |
| 268 |
| 269 virtual void CloseWindow() {} |
| 270 }; |
| 271 |
| 260 DownloadRequestDialogDelegate* DownloadRequestDialogDelegate::Create( | 272 DownloadRequestDialogDelegate* DownloadRequestDialogDelegate::Create( |
| 261 TabContents* tab, | 273 TabContents* tab, |
| 262 DownloadRequestManager::TabDownloadState* host) { | 274 DownloadRequestManager::TabDownloadState* host) { |
| 263 NOTIMPLEMENTED(); | 275 NOTIMPLEMENTED(); |
| 264 return NULL; | 276 return new DownloadRequestDialogDelegateStub(host); |
| 265 } | 277 } |
| 266 | 278 |
| 267 #if !defined(TOOLKIT_VIEWS) | 279 #if !defined(TOOLKIT_VIEWS) |
| 268 namespace download_util { | 280 namespace download_util { |
| 269 | 281 |
| 270 void DragDownload(const DownloadItem* download, SkBitmap* icon) { | 282 void DragDownload(const DownloadItem* download, SkBitmap* icon) { |
| 271 NOTIMPLEMENTED(); | 283 NOTIMPLEMENTED(); |
| 272 } | 284 } |
| 273 | 285 |
| 274 } // namespace download_util | 286 } // namespace download_util |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 return NULL; | 403 return NULL; |
| 392 } | 404 } |
| 393 | 405 |
| 394 wchar_t MenuItemView::GetMnemonic() { | 406 wchar_t MenuItemView::GetMnemonic() { |
| 395 return 'a'; | 407 return 'a'; |
| 396 } | 408 } |
| 397 | 409 |
| 398 } // namespace views | 410 } // namespace views |
| 399 | 411 |
| 400 #endif | 412 #endif |
| OLD | NEW |