| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 } | 204 } |
| 205 #endif | 205 #endif |
| 206 | 206 |
| 207 bool ClipboardIsFormatAvailable(unsigned int format) { | 207 bool ClipboardIsFormatAvailable(unsigned int format) { |
| 208 bool result; | 208 bool result; |
| 209 RenderThread::current()->Send( | 209 RenderThread::current()->Send( |
| 210 new ViewHostMsg_ClipboardIsFormatAvailable(format, &result)); | 210 new ViewHostMsg_ClipboardIsFormatAvailable(format, &result)); |
| 211 return result; | 211 return result; |
| 212 } | 212 } |
| 213 | 213 |
| 214 void ClipboardReadText(std::wstring* result) { | 214 void ClipboardReadText(string16* result) { |
| 215 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadText(result)); | 215 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadText(result)); |
| 216 } | 216 } |
| 217 | 217 |
| 218 void ClipboardReadAsciiText(std::string* result) { | 218 void ClipboardReadAsciiText(std::string* result) { |
| 219 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadAsciiText(result)); | 219 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadAsciiText(result)); |
| 220 } | 220 } |
| 221 | 221 |
| 222 void ClipboardReadHTML(std::wstring* markup, GURL* url) { | 222 void ClipboardReadHTML(string16* markup, GURL* url) { |
| 223 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadHTML(markup, url)); | 223 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadHTML(markup, url)); |
| 224 } | 224 } |
| 225 | 225 |
| 226 GURL GetInspectorURL() { | 226 GURL GetInspectorURL() { |
| 227 return GURL("chrome-ui://inspector/inspector.html"); | 227 return GURL("chrome-ui://inspector/inspector.html"); |
| 228 } | 228 } |
| 229 | 229 |
| 230 std::string GetUIResourceProtocol() { | 230 std::string GetUIResourceProtocol() { |
| 231 return "chrome-ui"; | 231 return "chrome-ui"; |
| 232 } | 232 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 // Update the browser about our cache | 306 // Update the browser about our cache |
| 307 // NOTE: Since this can be called from the plugin process, we might not have | 307 // NOTE: Since this can be called from the plugin process, we might not have |
| 308 // a RenderThread. Do nothing in that case. | 308 // a RenderThread. Do nothing in that case. |
| 309 if (!IsPluginProcess()) | 309 if (!IsPluginProcess()) |
| 310 RenderThread::current()->InformHostOfCacheStatsLater(); | 310 RenderThread::current()->InformHostOfCacheStatsLater(); |
| 311 } | 311 } |
| 312 | 312 |
| 313 #endif // !USING_SIMPLE_RESOURCE_LOADER_BRIDGE | 313 #endif // !USING_SIMPLE_RESOURCE_LOADER_BRIDGE |
| 314 | 314 |
| 315 } // namespace webkit_glue | 315 } // namespace webkit_glue |
| OLD | NEW |