| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // These stubs are for BrowserProcessImpl | 57 // These stubs are for BrowserProcessImpl |
| 58 | 58 |
| 59 class ViewMsg_Print_Params; | 59 class ViewMsg_Print_Params; |
| 60 | 60 |
| 61 // Printing is all (obviously) not implemented. | 61 // Printing is all (obviously) not implemented. |
| 62 // http://code.google.com/p/chromium/issues/detail?id=9847 | 62 // http://code.google.com/p/chromium/issues/detail?id=9847 |
| 63 namespace printing { | 63 namespace printing { |
| 64 | 64 |
| 65 class PrintViewManager : public RenderViewHostDelegate::Printing { | 65 class PrintViewManager : public RenderViewHostDelegate::Printing { |
| 66 public: | 66 public: |
| 67 PrintViewManager(TabContents&) {} | 67 PrintViewManager(TabContents&) { } |
| 68 void Stop() { NOTIMPLEMENTED(); } | 68 void Stop() { NOTIMPLEMENTED(); } |
| 69 void Destroy() {} | 69 void Destroy() { } |
| 70 bool OnRenderViewGone(RenderViewHost*) { | 70 bool OnRenderViewGone(RenderViewHost*) { |
| 71 NOTIMPLEMENTED(); | 71 NOTIMPLEMENTED(); |
| 72 return true; // Assume for now that all renderer crashes are important. | 72 return true; // Assume for now that all renderer crashes are important. |
| 73 } | 73 } |
| 74 | 74 |
| 75 // RenderViewHostDelegate::Printing implementation. | 75 // RenderViewHostDelegate::Printing implementation. |
| 76 virtual void DidGetPrintedPagesCount(int cookie, int number_pages) { | 76 virtual void DidGetPrintedPagesCount(int cookie, int number_pages) { |
| 77 NOTIMPLEMENTED(); | 77 NOTIMPLEMENTED(); |
| 78 } | 78 } |
| 79 virtual void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params) { | 79 virtual void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 108 const PrintSettings& settings() { NOTIMPLEMENTED(); return settings_; } | 108 const PrintSettings& settings() { NOTIMPLEMENTED(); return settings_; } |
| 109 int cookie() { NOTIMPLEMENTED(); return 0; } | 109 int cookie() { NOTIMPLEMENTED(); return 0; } |
| 110 void StopWorker() { NOTIMPLEMENTED(); } | 110 void StopWorker() { NOTIMPLEMENTED(); } |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 PrintSettings settings_; | 113 PrintSettings settings_; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 class PrintJobManager { | 116 class PrintJobManager { |
| 117 public: | 117 public: |
| 118 void OnQuit() {} | 118 void OnQuit() { } |
| 119 void PopPrinterQuery(int document_cookie, scoped_refptr<PrinterQuery>* job) { | 119 void PopPrinterQuery(int document_cookie, scoped_refptr<PrinterQuery>* job) { |
| 120 NOTIMPLEMENTED(); | 120 NOTIMPLEMENTED(); |
| 121 } | 121 } |
| 122 void QueuePrinterQuery(PrinterQuery* job) { NOTIMPLEMENTED(); } | 122 void QueuePrinterQuery(PrinterQuery* job) { NOTIMPLEMENTED(); } |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace printing | 125 } // namespace printing |
| 126 | 126 |
| 127 //--------------------------------------------------------------------------- | 127 //--------------------------------------------------------------------------- |
| 128 // These stubs are for Browser | 128 // These stubs are for Browser |
| (...skipping 14 matching lines...) Expand all Loading... |
| 143 }; | 143 }; |
| 144 #else | 144 #else |
| 145 | 145 |
| 146 #endif | 146 #endif |
| 147 | 147 |
| 148 //--------------------------------------------------------------------------- | 148 //--------------------------------------------------------------------------- |
| 149 // These stubs are for TabContents | 149 // These stubs are for TabContents |
| 150 | 150 |
| 151 class RepostFormWarningDialog { | 151 class RepostFormWarningDialog { |
| 152 public: | 152 public: |
| 153 static void RunRepostFormWarningDialog(NavigationController*) {} | 153 static void RunRepostFormWarningDialog(NavigationController*) { } |
| 154 protected: | 154 virtual ~RepostFormWarningDialog() { } |
| 155 ~RepostFormWarningDialog() {} | |
| 156 }; | 155 }; |
| 157 | 156 |
| 158 class BaseDragSource { | 157 class BaseDragSource { |
| 159 }; | 158 }; |
| 160 | 159 |
| 161 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 160 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
| OLD | NEW |