| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 void RenderParams(ViewMsg_Print_Params* params) const { NOTIMPLEMENTED(); } | 137 void RenderParams(ViewMsg_Print_Params* params) const { NOTIMPLEMENTED(); } |
| 138 int dpi() const { NOTIMPLEMENTED(); return 92; } | 138 int dpi() const { NOTIMPLEMENTED(); return 92; } |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 class PrinterQuery : public base::RefCountedThreadSafe<PrinterQuery> { | 141 class PrinterQuery : public base::RefCountedThreadSafe<PrinterQuery> { |
| 142 public: | 142 public: |
| 143 enum GetSettingsAskParam { | 143 enum GetSettingsAskParam { |
| 144 DEFAULTS, | 144 DEFAULTS, |
| 145 ASK_USER, | 145 ASK_USER, |
| 146 }; | 146 }; |
| 147 | 147 PrinterQuery(MessageLoop*) {} |
| 148 void GetSettings(GetSettingsAskParam ask_user_for_settings, | 148 void GetSettings(GetSettingsAskParam ask_user_for_settings, |
| 149 int parent_window, | 149 int parent_window, |
| 150 int expected_page_count, | 150 int expected_page_count, |
| 151 CancelableTask* callback) { NOTIMPLEMENTED(); } | 151 CancelableTask* callback) { NOTIMPLEMENTED(); } |
| 152 PrintingContext::Result last_status() { return PrintingContext::FAILED; } | 152 PrintingContext::Result last_status() { return PrintingContext::FAILED; } |
| 153 const PrintSettings& settings() { NOTIMPLEMENTED(); return settings_; } | 153 const PrintSettings& settings() { NOTIMPLEMENTED(); return settings_; } |
| 154 int cookie() { NOTIMPLEMENTED(); return 0; } | 154 int cookie() { NOTIMPLEMENTED(); return 0; } |
| 155 void StopWorker() { NOTIMPLEMENTED(); } | 155 void StopWorker() { NOTIMPLEMENTED(); } |
| 156 | 156 |
| 157 private: | 157 private: |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 void InitHidden() { NOTIMPLEMENTED(); } | 563 void InitHidden() { NOTIMPLEMENTED(); } |
| 564 void set_preferred_size(const gfx::Size& size) { NOTIMPLEMENTED(); } | 564 void set_preferred_size(const gfx::Size& size) { NOTIMPLEMENTED(); } |
| 565 virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); } | 565 virtual void SetVisible(bool flag) { NOTIMPLEMENTED(); } |
| 566 void SizeToPreferredSize() { NOTIMPLEMENTED(); } | 566 void SizeToPreferredSize() { NOTIMPLEMENTED(); } |
| 567 HWNDHtmlView* GetParent() const { NOTIMPLEMENTED(); return NULL; } | 567 HWNDHtmlView* GetParent() const { NOTIMPLEMENTED(); return NULL; } |
| 568 void Layout() { NOTIMPLEMENTED(); } | 568 void Layout() { NOTIMPLEMENTED(); } |
| 569 void SchedulePaint() { NOTIMPLEMENTED(); } | 569 void SchedulePaint() { NOTIMPLEMENTED(); } |
| 570 }; | 570 }; |
| 571 | 571 |
| 572 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 572 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| OLD | NEW |