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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 180 |
181 // Glue to access the clipboard. | 181 // Glue to access the clipboard. |
182 | 182 |
183 // Get a clipboard that can be used to construct a ScopedClipboardWriterGlue. | 183 // Get a clipboard that can be used to construct a ScopedClipboardWriterGlue. |
184 Clipboard* ClipboardGetClipboard(); | 184 Clipboard* ClipboardGetClipboard(); |
185 | 185 |
186 // Tests whether the clipboard contains a certain format | 186 // Tests whether the clipboard contains a certain format |
187 bool ClipboardIsFormatAvailable(Clipboard::FormatType format); | 187 bool ClipboardIsFormatAvailable(Clipboard::FormatType format); |
188 | 188 |
189 // Reads UNICODE text from the clipboard, if available. | 189 // Reads UNICODE text from the clipboard, if available. |
190 void ClipboardReadText(std::wstring* result); | 190 void ClipboardReadText(string16* result); |
191 | 191 |
192 // Reads ASCII text from the clipboard, if available. | 192 // Reads ASCII text from the clipboard, if available. |
193 void ClipboardReadAsciiText(std::string* result); | 193 void ClipboardReadAsciiText(std::string* result); |
194 | 194 |
195 // Reads HTML from the clipboard, if available. | 195 // Reads HTML from the clipboard, if available. |
196 void ClipboardReadHTML(std::wstring* markup, GURL* url); | 196 void ClipboardReadHTML(string16* markup, GURL* url); |
197 | 197 |
198 // Gets the directory where the application data and libraries exist. This | 198 // Gets the directory where the application data and libraries exist. This |
199 // may be a versioned subdirectory, or it may be the same directory as the | 199 // may be a versioned subdirectory, or it may be the same directory as the |
200 // GetExeDirectory(), depending on the embedder's implementation. | 200 // GetExeDirectory(), depending on the embedder's implementation. |
201 // Path is an output parameter to receive the path. | 201 // Path is an output parameter to receive the path. |
202 // Returns true if successful, false otherwise. | 202 // Returns true if successful, false otherwise. |
203 bool GetApplicationDirectory(std::wstring* path); | 203 bool GetApplicationDirectory(std::wstring* path); |
204 | 204 |
205 // Gets the URL where the inspector's HTML file resides. It must use the | 205 // Gets the URL where the inspector's HTML file resides. It must use the |
206 // protocol returned by GetUIResourceProtocol. | 206 // protocol returned by GetUIResourceProtocol. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // Returns whether the given link hash is in the user's history. The hash must | 256 // Returns whether the given link hash is in the user's history. The hash must |
257 // have been generated by calling VisitedLinkHash(). | 257 // have been generated by calling VisitedLinkHash(). |
258 bool IsLinkVisited(uint64 link_hash); | 258 bool IsLinkVisited(uint64 link_hash); |
259 | 259 |
260 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 260 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
261 | 261 |
262 | 262 |
263 } // namespace webkit_glue | 263 } // namespace webkit_glue |
264 | 264 |
265 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 265 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |