| 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. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class NavigationController; | 32 class NavigationController; |
| 33 class Profile; | 33 class Profile; |
| 34 class RenderViewHostDelegate; | 34 class RenderViewHostDelegate; |
| 35 class SiteInstance; | 35 class SiteInstance; |
| 36 class URLRequest; | 36 class URLRequest; |
| 37 class WebContents; | 37 class WebContents; |
| 38 struct ViewHostMsg_DidPrintPage_Params; | 38 struct ViewHostMsg_DidPrintPage_Params; |
| 39 | 39 |
| 40 namespace gfx { | 40 namespace gfx { |
| 41 class Rect; | 41 class Rect; |
| 42 class Widget; |
| 42 } | 43 } |
| 43 | 44 |
| 44 namespace IPC { | 45 namespace IPC { |
| 45 class Message; | 46 class Message; |
| 46 } | 47 } |
| 47 | 48 |
| 48 //--------------------------------------------------------------------------- | 49 //--------------------------------------------------------------------------- |
| 49 // These stubs are for Browser_main() | 50 // These stubs are for Browser_main() |
| 50 | 51 |
| 51 class GoogleUpdateSettings { | 52 class GoogleUpdateSettings { |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 void SetString(const std::wstring& data) { NOTIMPLEMENTED(); } | 472 void SetString(const std::wstring& data) { NOTIMPLEMENTED(); } |
| 472 void SetURL(const GURL& url, const std::wstring& title) { NOTIMPLEMENTED(); } | 473 void SetURL(const GURL& url, const std::wstring& title) { NOTIMPLEMENTED(); } |
| 473 }; | 474 }; |
| 474 | 475 |
| 475 class BaseDragSource { | 476 class BaseDragSource { |
| 476 }; | 477 }; |
| 477 | 478 |
| 478 //--------------------------------------------------------------------------- | 479 //--------------------------------------------------------------------------- |
| 479 // These stubs are for extensions | 480 // These stubs are for extensions |
| 480 | 481 |
| 481 class HWNDHtmlView { | 482 namespace views { |
| 483 class HWNDView { |
| 484 public: |
| 485 int width() { NOTIMPLEMENTED(); return 0; } |
| 486 int height() { NOTIMPLEMENTED(); return 0; } |
| 487 void InitHidden() { NOTIMPLEMENTED(); } |
| 488 void set_preferred_size(const gfx::Size& size) { NOTIMPLEMENTED(); } |
| 489 virtual void SetBackground(const SkBitmap&) { NOTIMPLEMENTED(); } |
| 490 virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); } |
| 491 void SizeToPreferredSize() { NOTIMPLEMENTED(); } |
| 492 bool IsVisible() const { NOTIMPLEMENTED(); return false; } |
| 493 void Layout() { NOTIMPLEMENTED(); } |
| 494 void SchedulePaint() { NOTIMPLEMENTED(); } |
| 495 HWNDView* GetParent() const { NOTIMPLEMENTED(); return NULL; } |
| 496 |
| 497 gfx::NativeWindow GetHWND() { NOTIMPLEMENTED(); return 0; } |
| 498 void Detach() { NOTIMPLEMENTED(); } |
| 499 gfx::Widget* GetWidget() { NOTIMPLEMENTED(); return NULL; } |
| 500 }; |
| 501 } // namespace views |
| 502 |
| 503 class HWNDHtmlView : public views::HWNDView { |
| 482 public: | 504 public: |
| 483 HWNDHtmlView(const GURL& content_url, RenderViewHostDelegate* delegate, | 505 HWNDHtmlView(const GURL& content_url, RenderViewHostDelegate* delegate, |
| 484 bool allow_dom_ui_bindings, SiteInstance* instance) { | 506 bool allow_dom_ui_bindings, SiteInstance* instance) { |
| 485 NOTIMPLEMENTED(); | 507 NOTIMPLEMENTED(); |
| 486 } | 508 } |
| 487 virtual ~HWNDHtmlView() {} | 509 virtual ~HWNDHtmlView() {} |
| 488 | 510 |
| 489 int height() { NOTIMPLEMENTED(); return 0; } | |
| 490 RenderViewHost* render_view_host() { NOTIMPLEMENTED(); return NULL; } | 511 RenderViewHost* render_view_host() { NOTIMPLEMENTED(); return NULL; } |
| 491 void InitHidden() { NOTIMPLEMENTED(); } | |
| 492 void set_preferred_size(const gfx::Size& size) { NOTIMPLEMENTED(); } | |
| 493 virtual void SetBackground(const SkBitmap&) { NOTIMPLEMENTED(); } | |
| 494 virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); } | |
| 495 void SizeToPreferredSize() { NOTIMPLEMENTED(); } | |
| 496 HWNDHtmlView* GetParent() const { NOTIMPLEMENTED(); return NULL; } | |
| 497 bool IsVisible() const { NOTIMPLEMENTED(); return false; } | |
| 498 void Layout() { NOTIMPLEMENTED(); } | |
| 499 void SchedulePaint() { NOTIMPLEMENTED(); } | |
| 500 SiteInstance* site_instance() { NOTIMPLEMENTED(); return NULL; } | 512 SiteInstance* site_instance() { NOTIMPLEMENTED(); return NULL; } |
| 501 }; | 513 }; |
| 502 | 514 |
| 515 |
| 503 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 516 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| OLD | NEW |