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

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

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/chrome.gyp ('k') | chrome/common/temp_scaffolding_stubs.cc » ('j') | 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 #ifndef CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 5 #ifndef CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
7 7
8 // This file provides declarations and stub definitions for classes we encouter 8 // This file provides declarations and stub definitions for classes we encouter
9 // during the porting effort. It is not meant to be permanent, and classes will 9 // during the porting effort. It is not meant to be permanent, and classes will
10 // be removed from here as they are fleshed out more completely. 10 // be removed from here as they are fleshed out more completely.
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/gfx/native_widget_types.h" 15 #include "base/gfx/native_widget_types.h"
16 #include "base/gfx/size.h" 16 #include "base/gfx/size.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/ref_counted.h" 18 #include "base/ref_counted.h"
19 #include "base/string16.h" 19 #include "base/string16.h"
20 #include "build/build_config.h" 20 #include "build/build_config.h"
21 #include "chrome/browser/dom_ui/html_dialog_ui.h" 21 #include "chrome/browser/dom_ui/html_dialog_ui.h"
22 #include "chrome/browser/tab_contents/navigation_entry.h" 22 #include "chrome/browser/tab_contents/navigation_entry.h"
23 #include "googleurl/src/gurl.h" 23 #include "googleurl/src/gurl.h"
24 #include "third_party/skia/include/core/SkBitmap.h" 24 #include "third_party/skia/include/core/SkBitmap.h"
25 25
26 #if defined(OS_MACOSX)
27 #include "chrome/browser/download/download_item_model.h"
28 #include "chrome/browser/download/download_shelf.h"
29 #endif
30
31 26
32 class BookmarkContextMenu; 27 class BookmarkContextMenu;
33 class BookmarkNode; 28 class BookmarkNode;
34 class Browser; 29 class Browser;
35 class CommandLine; 30 class CommandLine;
36 class DownloadItem; 31 class DownloadItem;
37 class MessageLoop; 32 class MessageLoop;
38 class NavigationController; 33 class NavigationController;
39 class ProcessSingleton; 34 class ProcessSingleton;
40 class Profile; 35 class Profile;
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 class OSExchangeData { 381 class OSExchangeData {
387 public: 382 public:
388 void SetString(const std::wstring& data) { NOTIMPLEMENTED(); } 383 void SetString(const std::wstring& data) { NOTIMPLEMENTED(); }
389 void SetURL(const GURL& url, const std::wstring& title) { NOTIMPLEMENTED(); } 384 void SetURL(const GURL& url, const std::wstring& title) { NOTIMPLEMENTED(); }
390 }; 385 };
391 #endif 386 #endif
392 387
393 class BaseDragSource { 388 class BaseDragSource {
394 }; 389 };
395 390
396 //--------------------------------------------------------------------------
397
398 #if defined(OS_MACOSX)
399
400 class DownloadShelfMac : public DownloadShelf {
401 public:
402 explicit DownloadShelfMac(Browser* browser)
403 : DownloadShelf(browser), visible_(false) { }
404 virtual void AddDownload(BaseDownloadItemModel* download_model)
405 { NOTIMPLEMENTED(); visible_ = true; }
406 virtual bool IsShowing() const { NOTIMPLEMENTED(); return visible_; }
407 virtual bool IsClosing() const { NOTIMPLEMENTED(); return visible_; }
408 virtual void Show() { NOTIMPLEMENTED(); visible_ = true; }
409 virtual void Close() { NOTIMPLEMENTED(); visible_ = false; }
410 private:
411 bool visible_;
412 };
413
414 #endif
415
416 //--------------------------------------------------------------------------- 391 //---------------------------------------------------------------------------
417 // These stubs are for extensions 392 // These stubs are for extensions
418 393
419 namespace views { 394 namespace views {
420 class HWNDView { 395 class HWNDView {
421 public: 396 public:
422 int width() { NOTIMPLEMENTED(); return 0; } 397 int width() { NOTIMPLEMENTED(); return 0; }
423 int height() { NOTIMPLEMENTED(); return 0; } 398 int height() { NOTIMPLEMENTED(); return 0; }
424 void InitHidden() { NOTIMPLEMENTED(); } 399 void InitHidden() { NOTIMPLEMENTED(); }
425 void SetPreferredSize(const gfx::Size& size) { NOTIMPLEMENTED(); } 400 void SetPreferredSize(const gfx::Size& size) { NOTIMPLEMENTED(); }
426 virtual void SetBackground(const SkBitmap&) { NOTIMPLEMENTED(); } 401 virtual void SetBackground(const SkBitmap&) { NOTIMPLEMENTED(); }
427 virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); } 402 virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); }
428 void SizeToPreferredSize() { NOTIMPLEMENTED(); } 403 void SizeToPreferredSize() { NOTIMPLEMENTED(); }
429 bool IsVisible() const { NOTIMPLEMENTED(); return false; } 404 bool IsVisible() const { NOTIMPLEMENTED(); return false; }
430 void Layout() { NOTIMPLEMENTED(); } 405 void Layout() { NOTIMPLEMENTED(); }
431 void SchedulePaint() { NOTIMPLEMENTED(); } 406 void SchedulePaint() { NOTIMPLEMENTED(); }
432 HWNDView* GetParent() const { NOTIMPLEMENTED(); return NULL; } 407 HWNDView* GetParent() const { NOTIMPLEMENTED(); return NULL; }
433 virtual gfx::Size GetPreferredSize() { NOTIMPLEMENTED(); return gfx::Size(); } 408 virtual gfx::Size GetPreferredSize() { NOTIMPLEMENTED(); return gfx::Size(); }
434 gfx::NativeWindow GetHWND() { NOTIMPLEMENTED(); return 0; } 409 gfx::NativeWindow GetHWND() { NOTIMPLEMENTED(); return 0; }
435 void Detach() { NOTIMPLEMENTED(); } 410 void Detach() { NOTIMPLEMENTED(); }
436 gfx::Widget* GetWidget() { NOTIMPLEMENTED(); return NULL; } 411 gfx::Widget* GetWidget() { NOTIMPLEMENTED(); return NULL; }
437 }; 412 };
438 } // namespace views 413 } // namespace views
439 414
440 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 415 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/temp_scaffolding_stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698