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

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

Issue 115740: Move download shelf from per-tab to per-window (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' 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
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
11 #include "base/gfx/rect.h" 11 #include "base/gfx/rect.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "chrome/browser/automation/automation_provider.h" 13 #include "chrome/browser/automation/automation_provider.h"
14 #include "chrome/browser/download/download_request_dialog_delegate.h" 14 #include "chrome/browser/download/download_request_dialog_delegate.h"
15 #include "chrome/browser/download/download_request_manager.h" 15 #include "chrome/browser/download/download_request_manager.h"
16 #include "chrome/browser/first_run.h" 16 #include "chrome/browser/first_run.h"
17 #include "chrome/browser/hung_renderer_dialog.h" 17 #include "chrome/browser/hung_renderer_dialog.h"
18 #include "chrome/browser/memory_details.h" 18 #include "chrome/browser/memory_details.h"
19 #include "chrome/browser/options_window.h" 19 #include "chrome/browser/options_window.h"
20 #include "chrome/browser/rlz/rlz.h" 20 #include "chrome/browser/rlz/rlz.h"
21 #include "chrome/browser/shell_integration.h" 21 #include "chrome/browser/shell_integration.h"
22 #include "chrome/common/process_watcher.h" 22 #include "chrome/common/process_watcher.h"
23 23
24 #if defined(OS_MACOSX)
25 #include "chrome/browser/download/download_item_model.h"
26 #include "chrome/browser/download/download_shelf.h"
27 #endif
28
29 #if defined(OS_LINUX) 24 #if defined(OS_LINUX)
30 #include "chrome/browser/dock_info.h" 25 #include "chrome/browser/dock_info.h"
31 #endif 26 #endif
32 27
33 #if defined(TOOLKIT_VIEWS) 28 #if defined(TOOLKIT_VIEWS)
34 #include "views/controls/menu/chrome_menu.h" 29 #include "views/controls/menu/chrome_menu.h"
35 #endif 30 #endif
36 31
37 class TabContents; 32 class TabContents;
38 33
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 206 }
212 207
213 bool RLZTracker::RecordProductEvent(Product product, AccessPoint point, 208 bool RLZTracker::RecordProductEvent(Product product, AccessPoint point,
214 Event event) { 209 Event event) {
215 // http://code.google.com/p/chromium/issues/detail?id=8152 210 // http://code.google.com/p/chromium/issues/detail?id=8152
216 return false; 211 return false;
217 } 212 }
218 213
219 //-------------------------------------------------------------------------- 214 //--------------------------------------------------------------------------
220 215
221 #if defined(OS_MACOSX)
222
223 class DownloadShelfMac : public DownloadShelf {
224 public:
225 explicit DownloadShelfMac(TabContents* tab_contents)
226 : DownloadShelf(tab_contents) { }
227 virtual void AddDownload(BaseDownloadItemModel* download_model) { }
228 virtual bool IsShowing() const { return false; }
229 virtual bool IsClosing() const { return false; }
230 };
231
232 // static
233 DownloadShelf* DownloadShelf::Create(TabContents* tab_contents) {
234 return new DownloadShelfMac(tab_contents);
235 }
236
237 #endif
238
239 //--------------------------------------------------------------------------
240
241 void RunRepostFormWarningDialog(NavigationController*) { 216 void RunRepostFormWarningDialog(NavigationController*) {
242 } 217 }
243 218
244 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, 219 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info,
245 URLRequest* request, 220 URLRequest* request,
246 MessageLoop* ui_loop) { 221 MessageLoop* ui_loop) {
247 NOTIMPLEMENTED(); 222 NOTIMPLEMENTED();
248 return NULL; 223 return NULL;
249 } 224 }
250 225
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 return NULL; 384 return NULL;
410 } 385 }
411 386
412 wchar_t MenuItemView::GetMnemonic() { 387 wchar_t MenuItemView::GetMnemonic() {
413 return 'a'; 388 return 'a';
414 } 389 }
415 390
416 } // namespace views 391 } // namespace views
417 392
418 #endif 393 #endif
OLDNEW
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.h ('k') | chrome/test/automation/automation_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698