Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: chrome/common/temp_scaffolding_stubs.cc

Issue 93129: Initial download shelf on OS X.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: fix download_uitest Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698