| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // These stubs are for BrowserProcessImpl | 47 // These stubs are for BrowserProcessImpl |
| 48 | 48 |
| 49 class ViewMsg_Print_Params; | 49 class ViewMsg_Print_Params; |
| 50 | 50 |
| 51 // Printing is all (obviously) not implemented. | 51 // Printing is all (obviously) not implemented. |
| 52 // http://code.google.com/p/chromium/issues/detail?id=9847 | 52 // http://code.google.com/p/chromium/issues/detail?id=9847 |
| 53 namespace printing { | 53 namespace printing { |
| 54 | 54 |
| 55 class PrintViewManager : public RenderViewHostDelegate::Printing { | 55 class PrintViewManager : public RenderViewHostDelegate::Printing { |
| 56 public: | 56 public: |
| 57 PrintViewManager(TabContents&) { } | 57 PrintViewManager(TabContents& owner) : owner_(owner) { } |
| 58 void Stop() { NOTIMPLEMENTED(); } | 58 void Stop() { NOTIMPLEMENTED(); } |
| 59 void Destroy() { } | 59 void Destroy() { } |
| 60 bool OnRenderViewGone(RenderViewHost*) { | 60 bool OnRenderViewGone(RenderViewHost*) { |
| 61 NOTIMPLEMENTED(); | 61 NOTIMPLEMENTED(); |
| 62 return true; // Assume for now that all renderer crashes are important. | 62 return true; // Assume for now that all renderer crashes are important. |
| 63 } | 63 } |
| 64 | 64 |
| 65 // RenderViewHostDelegate::Printing implementation. | 65 // RenderViewHostDelegate::Printing implementation. |
| 66 virtual void DidGetPrintedPagesCount(int cookie, int number_pages) { | 66 virtual void DidGetPrintedPagesCount(int cookie, int number_pages) { |
| 67 NOTIMPLEMENTED(); | 67 NOTIMPLEMENTED(); |
| 68 } | 68 } |
| 69 |
| 70 #if defined(OS_LINUX) |
| 71 virtual void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params); |
| 72 #else |
| 69 virtual void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params) { | 73 virtual void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params) { |
| 70 NOTIMPLEMENTED(); | 74 NOTIMPLEMENTED(); |
| 71 } | 75 } |
| 76 #endif |
| 77 |
| 78 private: |
| 79 TabContents& owner_; |
| 72 }; | 80 }; |
| 73 | 81 |
| 74 class PrintingContext { | 82 class PrintingContext { |
| 75 public: | 83 public: |
| 76 enum Result { OK, CANCEL, FAILED }; | 84 enum Result { OK, CANCEL, FAILED }; |
| 77 }; | 85 }; |
| 78 | 86 |
| 79 class PrintSettings { | 87 class PrintSettings { |
| 80 public: | 88 public: |
| 81 void RenderParams(ViewMsg_Print_Params* params) const { NOTIMPLEMENTED(); } | 89 void RenderParams(ViewMsg_Print_Params* params) const { NOTIMPLEMENTED(); } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 143 |
| 136 #endif | 144 #endif |
| 137 | 145 |
| 138 //--------------------------------------------------------------------------- | 146 //--------------------------------------------------------------------------- |
| 139 // These stubs are for TabContents | 147 // These stubs are for TabContents |
| 140 | 148 |
| 141 class BaseDragSource { | 149 class BaseDragSource { |
| 142 }; | 150 }; |
| 143 | 151 |
| 144 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 152 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| OLD | NEW |