OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file provides the embedder's side of random webkit glue functions. | 5 // This file provides the embedder's side of random webkit glue functions. |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 return ResourceBundle::GetSharedInstance().LoadCursor(cursor_id); | 182 return ResourceBundle::GetSharedInstance().LoadCursor(cursor_id); |
183 } | 183 } |
184 #endif | 184 #endif |
185 | 185 |
186 // Clipboard glue | 186 // Clipboard glue |
187 | 187 |
188 Clipboard* ClipboardGetClipboard(){ | 188 Clipboard* ClipboardGetClipboard(){ |
189 return NULL; | 189 return NULL; |
190 } | 190 } |
191 | 191 |
192 #if defined(OS_LINUX) | 192 bool ClipboardIsFormatAvailable(const Clipboard::FormatType& format) { |
193 // TODO(port): This should replace the method below (the unsigned int is a | |
194 // windows type). We may need to convert the type of format so it can be sent | |
195 // over IPC. | |
196 bool ClipboardIsFormatAvailable(Clipboard::FormatType format) { | |
197 NOTIMPLEMENTED(); | |
198 return false; | |
199 } | |
200 #endif | |
201 | |
202 bool ClipboardIsFormatAvailable(unsigned int format) { | |
203 bool result; | 193 bool result; |
204 RenderThread::current()->Send( | 194 RenderThread::current()->Send( |
205 new ViewHostMsg_ClipboardIsFormatAvailable(format, &result)); | 195 new ViewHostMsg_ClipboardIsFormatAvailable(format, &result)); |
206 return result; | 196 return result; |
207 } | 197 } |
208 | 198 |
209 void ClipboardReadText(string16* result) { | 199 void ClipboardReadText(string16* result) { |
210 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadText(result)); | 200 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadText(result)); |
211 } | 201 } |
212 | 202 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 // Update the browser about our cache | 282 // Update the browser about our cache |
293 // NOTE: Since this can be called from the plugin process, we might not have | 283 // NOTE: Since this can be called from the plugin process, we might not have |
294 // a RenderThread. Do nothing in that case. | 284 // a RenderThread. Do nothing in that case. |
295 if (!IsPluginProcess()) | 285 if (!IsPluginProcess()) |
296 RenderThread::current()->InformHostOfCacheStatsLater(); | 286 RenderThread::current()->InformHostOfCacheStatsLater(); |
297 } | 287 } |
298 | 288 |
299 #endif // !USING_SIMPLE_RESOURCE_LOADER_BRIDGE | 289 #endif // !USING_SIMPLE_RESOURCE_LOADER_BRIDGE |
300 | 290 |
301 } // namespace webkit_glue | 291 } // namespace webkit_glue |
OLD | NEW |