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 "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 18 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
19 | 19 |
20 #if !defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) | |
21 // For download_util::DragDownload | |
22 #include "app/gfx/native_widget_types.h" | |
23 #include "third_party/skia/include/core/SkBitmap.h" | |
24 #endif | |
25 | |
26 class CancelableTask; | 20 class CancelableTask; |
27 class CommandLine; | 21 class CommandLine; |
28 class DownloadItem; | |
29 class TabContents; | 22 class TabContents; |
30 struct ViewHostMsg_DidPrintPage_Params; | 23 struct ViewHostMsg_DidPrintPage_Params; |
31 | 24 |
32 namespace gfx { | 25 namespace gfx { |
33 class Rect; | 26 class Rect; |
34 class Widget; | 27 class Widget; |
35 } | 28 } |
36 | 29 |
37 namespace IPC { | 30 namespace IPC { |
38 class Message; | 31 class Message; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 108 } |
116 void QueuePrinterQuery(PrinterQuery* job) { NOTIMPLEMENTED(); } | 109 void QueuePrinterQuery(PrinterQuery* job) { NOTIMPLEMENTED(); } |
117 }; | 110 }; |
118 | 111 |
119 } // namespace printing | 112 } // namespace printing |
120 #endif // !OS_MACOSX | 113 #endif // !OS_MACOSX |
121 | 114 |
122 //--------------------------------------------------------------------------- | 115 //--------------------------------------------------------------------------- |
123 // These stubs are for Browser | 116 // These stubs are for Browser |
124 | 117 |
125 #if !defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) | |
126 namespace download_util { | |
127 void DragDownload(const DownloadItem* download, | |
128 SkBitmap* icon, | |
129 gfx::NativeView view); | |
130 } // namespace download_util | |
131 #endif | |
132 | |
133 #if defined(OS_MACOSX) | 118 #if defined(OS_MACOSX) |
134 class DockInfo { | 119 class DockInfo { |
135 public: | 120 public: |
136 bool GetNewWindowBounds(gfx::Rect*, bool*) const; | 121 bool GetNewWindowBounds(gfx::Rect*, bool*) const; |
137 void AdjustOtherWindowBounds() const; | 122 void AdjustOtherWindowBounds() const; |
138 }; | 123 }; |
139 #else | |
140 | |
141 #endif | 124 #endif |
142 | 125 |
143 //--------------------------------------------------------------------------- | |
144 // These stubs are for TabContents | |
145 | |
146 class BaseDragSource { | |
147 }; | |
148 | |
149 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ | 126 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ |
OLD | NEW |