| 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 #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/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/ref_counted.h" | 16 #include "base/ref_counted.h" |
| 17 #include "base/string16.h" | 17 #include "base/string16.h" |
| 18 #include "base/gfx/native_widget_types.h" | 18 #include "base/gfx/native_widget_types.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 20 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
| 21 #include "chrome/browser/tab_contents/navigation_entry.h" | 21 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
| 23 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
| 24 | 24 |
| 25 #if defined(OS_MACOSX) |
| 26 #include "chrome/browser/download/download_item_model.h" |
| 27 #include "chrome/browser/download/download_shelf.h" |
| 28 #endif |
| 29 |
| 30 |
| 25 class BookmarkContextMenu; | 31 class BookmarkContextMenu; |
| 26 class BookmarkNode; | 32 class BookmarkNode; |
| 27 class Browser; | 33 class Browser; |
| 28 class CommandLine; | 34 class CommandLine; |
| 29 class DownloadItem; | 35 class DownloadItem; |
| 30 class MessageLoop; | 36 class MessageLoop; |
| 31 class NavigationController; | 37 class NavigationController; |
| 32 class ProcessSingleton; | 38 class ProcessSingleton; |
| 33 class Profile; | 39 class Profile; |
| 34 class RenderViewHostDelegate; | 40 class RenderViewHostDelegate; |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 class OSExchangeData { | 420 class OSExchangeData { |
| 415 public: | 421 public: |
| 416 void SetString(const std::wstring& data) { NOTIMPLEMENTED(); } | 422 void SetString(const std::wstring& data) { NOTIMPLEMENTED(); } |
| 417 void SetURL(const GURL& url, const std::wstring& title) { NOTIMPLEMENTED(); } | 423 void SetURL(const GURL& url, const std::wstring& title) { NOTIMPLEMENTED(); } |
| 418 }; | 424 }; |
| 419 #endif | 425 #endif |
| 420 | 426 |
| 421 class BaseDragSource { | 427 class BaseDragSource { |
| 422 }; | 428 }; |
| 423 | 429 |
| 430 //-------------------------------------------------------------------------- |
| 431 |
| 432 #if defined(OS_MACOSX) |
| 433 |
| 434 class DownloadShelfMac : public DownloadShelf { |
| 435 public: |
| 436 explicit DownloadShelfMac(Browser* browser) |
| 437 : DownloadShelf(browser), visible_(false) { } |
| 438 virtual void AddDownload(BaseDownloadItemModel* download_model) |
| 439 { NOTIMPLEMENTED(); visible_ = true; } |
| 440 virtual bool IsShowing() const { NOTIMPLEMENTED(); return visible_; } |
| 441 virtual bool IsClosing() const { NOTIMPLEMENTED(); return visible_; } |
| 442 virtual void Show() { NOTIMPLEMENTED(); visible_ = true; } |
| 443 virtual void Close() { NOTIMPLEMENTED(); visible_ = false; } |
| 444 private: |
| 445 bool visible_; |
| 446 }; |
| 447 |
| 448 #endif |
| 449 |
| 450 //--------------------------------------------------------------------------- |
| 451 // These stubs are for extensions |
| 452 |
| 453 namespace views { |
| 454 class HWNDView { |
| 455 public: |
| 456 int width() { NOTIMPLEMENTED(); return 0; } |
| 457 int height() { NOTIMPLEMENTED(); return 0; } |
| 458 void InitHidden() { NOTIMPLEMENTED(); } |
| 459 void SetPreferredSize(const gfx::Size& size) { NOTIMPLEMENTED(); } |
| 460 virtual void SetBackground(const SkBitmap&) { NOTIMPLEMENTED(); } |
| 461 virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); } |
| 462 void SizeToPreferredSize() { NOTIMPLEMENTED(); } |
| 463 bool IsVisible() const { NOTIMPLEMENTED(); return false; } |
| 464 void Layout() { NOTIMPLEMENTED(); } |
| 465 void SchedulePaint() { NOTIMPLEMENTED(); } |
| 466 HWNDView* GetParent() const { NOTIMPLEMENTED(); return NULL; } |
| 467 virtual gfx::Size GetPreferredSize() { NOTIMPLEMENTED(); return gfx::Size(); } |
| 468 gfx::NativeWindow GetHWND() { NOTIMPLEMENTED(); return 0; } |
| 469 void Detach() { NOTIMPLEMENTED(); } |
| 470 gfx::Widget* GetWidget() { NOTIMPLEMENTED(); return NULL; } |
| 471 }; |
| 472 } // namespace views |
| 473 |
| 424 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 474 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| OLD | NEW |