Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: webkit/glue/webkit_glue.h

Issue 174367: Change the ChromiumPasteboard to have a notion of an alternate clipboard... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webclipboard_impl.cc ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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
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(const Clipboard::FormatType& format); 155 bool ClipboardIsFormatAvailable(const Clipboard::FormatType& format,
156 Clipboard::Buffer buffer);
156 157
157 // Reads UNICODE text from the clipboard, if available. 158 // Reads UNICODE text from the clipboard, if available.
158 void ClipboardReadText(string16* result); 159 void ClipboardReadText(Clipboard::Buffer buffer, string16* result);
159 160
160 // Reads ASCII text from the clipboard, if available. 161 // Reads ASCII text from the clipboard, if available.
161 void ClipboardReadAsciiText(std::string* result); 162 void ClipboardReadAsciiText(Clipboard::Buffer buffer, std::string* result);
162 163
163 // Reads HTML from the clipboard, if available. 164 // Reads HTML from the clipboard, if available.
164 void ClipboardReadHTML(string16* markup, GURL* url); 165 void ClipboardReadHTML(Clipboard::Buffer buffer, string16* markup, GURL* url);
165 166
166 // Gets the directory where the application data and libraries exist. This 167 // Gets the directory where the application data and libraries exist. This
167 // may be a versioned subdirectory, or it may be the same directory as the 168 // may be a versioned subdirectory, or it may be the same directory as the
168 // GetExeDirectory(), depending on the embedder's implementation. 169 // GetExeDirectory(), depending on the embedder's implementation.
169 // Path is an output parameter to receive the path. 170 // Path is an output parameter to receive the path.
170 // Returns true if successful, false otherwise. 171 // Returns true if successful, false otherwise.
171 bool GetApplicationDirectory(FilePath* path); 172 bool GetApplicationDirectory(FilePath* path);
172 173
173 // Gets the URL where the inspector's HTML file resides. It must use the 174 // Gets the URL where the inspector's HTML file resides. It must use the
174 // protocol returned by GetUIResourceProtocol. 175 // protocol returned by GetUIResourceProtocol.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 215
215 // Enable or disable the disk cache. Used for debugging. 216 // Enable or disable the disk cache. Used for debugging.
216 void SetCacheMode(bool enabled); 217 void SetCacheMode(bool enabled);
217 218
218 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- 219 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER ---------------------------------
219 220
220 221
221 } // namespace webkit_glue 222 } // namespace webkit_glue
222 223
223 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ 224 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webclipboard_impl.cc ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698