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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 return ResourceBundle::GetSharedInstance().LoadCursor(cursor_id); | 167 return ResourceBundle::GetSharedInstance().LoadCursor(cursor_id); |
168 } | 168 } |
169 #endif | 169 #endif |
170 | 170 |
171 // Clipboard glue | 171 // Clipboard glue |
172 | 172 |
173 Clipboard* ClipboardGetClipboard(){ | 173 Clipboard* ClipboardGetClipboard(){ |
174 return NULL; | 174 return NULL; |
175 } | 175 } |
176 | 176 |
177 bool ClipboardIsFormatAvailable(const Clipboard::FormatType& format) { | 177 bool ClipboardIsFormatAvailable(const Clipboard::FormatType& format, |
| 178 Clipboard::Buffer buffer) { |
178 bool result; | 179 bool result; |
179 RenderThread::current()->Send( | 180 RenderThread::current()->Send( |
180 new ViewHostMsg_ClipboardIsFormatAvailable(format, &result)); | 181 new ViewHostMsg_ClipboardIsFormatAvailable(format, buffer, &result)); |
181 return result; | 182 return result; |
182 } | 183 } |
183 | 184 |
184 void ClipboardReadText(string16* result) { | 185 void ClipboardReadText(Clipboard::Buffer buffer, string16* result) { |
185 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadText(result)); | 186 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadText(buffer, |
| 187 result)); |
186 } | 188 } |
187 | 189 |
188 void ClipboardReadAsciiText(std::string* result) { | 190 void ClipboardReadAsciiText(Clipboard::Buffer buffer, std::string* result) { |
189 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadAsciiText(result)); | 191 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadAsciiText(buffer, |
| 192 result)); |
190 } | 193 } |
191 | 194 |
192 void ClipboardReadHTML(string16* markup, GURL* url) { | 195 void ClipboardReadHTML(Clipboard::Buffer buffer, string16* markup, GURL* url) { |
193 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadHTML(markup, url)); | 196 RenderThread::current()->Send(new ViewHostMsg_ClipboardReadHTML(buffer, |
| 197 markup, url)); |
194 } | 198 } |
195 | 199 |
196 GURL GetInspectorURL() { | 200 GURL GetInspectorURL() { |
197 return GURL(std::string(chrome::kChromeUIScheme) + | 201 return GURL(std::string(chrome::kChromeUIScheme) + |
198 "://inspector/inspector.html"); | 202 "://inspector/inspector.html"); |
199 } | 203 } |
200 | 204 |
201 std::string GetUIResourceProtocol() { | 205 std::string GetUIResourceProtocol() { |
202 return "chrome"; | 206 return "chrome"; |
203 } | 207 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 243 |
240 void CloseIdleConnections() { | 244 void CloseIdleConnections() { |
241 RenderThread::current()->CloseIdleConnections(); | 245 RenderThread::current()->CloseIdleConnections(); |
242 } | 246 } |
243 | 247 |
244 void SetCacheMode(bool enabled) { | 248 void SetCacheMode(bool enabled) { |
245 RenderThread::current()->SetCacheMode(enabled); | 249 RenderThread::current()->SetCacheMode(enabled); |
246 } | 250 } |
247 | 251 |
248 } // namespace webkit_glue | 252 } // namespace webkit_glue |
OLD | NEW |