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 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ | 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ |
6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ | 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Loads and returns a cursor. | 145 // Loads and returns a cursor. |
146 HCURSOR LoadCursor(int cursor_id); | 146 HCURSOR LoadCursor(int cursor_id); |
147 #endif | 147 #endif |
148 | 148 |
149 // Glue to access the clipboard. | 149 // Glue to access the clipboard. |
150 | 150 |
151 // Get a clipboard that can be used to construct a ScopedClipboardWriterGlue. | 151 // Get a clipboard that can be used to construct a ScopedClipboardWriterGlue. |
152 Clipboard* ClipboardGetClipboard(); | 152 Clipboard* ClipboardGetClipboard(); |
153 | 153 |
154 // Tests whether the clipboard contains a certain format | 154 // Tests whether the clipboard contains a certain format |
155 bool ClipboardIsFormatAvailable(Clipboard::FormatType format); | 155 bool ClipboardIsFormatAvailable(const Clipboard::FormatType& format); |
156 | 156 |
157 // Reads UNICODE text from the clipboard, if available. | 157 // Reads UNICODE text from the clipboard, if available. |
158 void ClipboardReadText(string16* result); | 158 void ClipboardReadText(string16* result); |
159 | 159 |
160 // Reads ASCII text from the clipboard, if available. | 160 // Reads ASCII text from the clipboard, if available. |
161 void ClipboardReadAsciiText(std::string* result); | 161 void ClipboardReadAsciiText(std::string* result); |
162 | 162 |
163 // Reads HTML from the clipboard, if available. | 163 // Reads HTML from the clipboard, if available. |
164 void ClipboardReadHTML(string16* markup, GURL* url); | 164 void ClipboardReadHTML(string16* markup, GURL* url); |
165 | 165 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // Returns the locale that this instance of webkit is running as. This is of | 216 // Returns the locale that this instance of webkit is running as. This is of |
217 // the form language-country (e.g., en-US or pt-BR). | 217 // the form language-country (e.g., en-US or pt-BR). |
218 std::wstring GetWebKitLocale(); | 218 std::wstring GetWebKitLocale(); |
219 | 219 |
220 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 220 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
221 | 221 |
222 | 222 |
223 } // namespace webkit_glue | 223 } // namespace webkit_glue |
224 | 224 |
225 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 225 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |