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

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

Issue 8463015: Revert 109622 - Export symbols from content.dll that are depended upon by chrome.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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/scoped_clipboard_writer_glue.h ('k') | webkit/glue/websocketstreamhandle_bridge.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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)
11 #include <windows.h> 11 #include <windows.h>
12 #endif 12 #endif
13 13
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/file_path.h" 17 #include "base/file_path.h"
18 #include "base/platform_file.h" 18 #include "base/platform_file.h"
19 #include "base/string16.h" 19 #include "base/string16.h"
20 #include "content/common/content_export.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileError.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileError.h"
23 #include "ui/base/clipboard/clipboard.h" 22 #include "ui/base/clipboard/clipboard.h"
24 23
25 class GURL; 24 class GURL;
26 class SkBitmap; 25 class SkBitmap;
27 26
28 namespace base { 27 namespace base {
29 class StringPiece; 28 class StringPiece;
30 } 29 }
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 155
157 //---- END FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ------------------------------- 156 //---- END FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE -------------------------------
158 157
159 158
160 //---- BEGIN FUNCTIONS IMPLEMENTED BY EMBEDDER -------------------------------- 159 //---- BEGIN FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------
161 160
162 // Glue to get resources from the embedder. 161 // Glue to get resources from the embedder.
163 162
164 // Gets a localized string given a message id. Returns an empty string if the 163 // Gets a localized string given a message id. Returns an empty string if the
165 // message id is not found. 164 // message id is not found.
166 CONTENT_EXPORT string16 GetLocalizedString(int message_id); 165 string16 GetLocalizedString(int message_id);
167 166
168 // Returns the raw data for a resource. This resource must have been 167 // Returns the raw data for a resource. This resource must have been
169 // specified as BINDATA in the relevant .rc file. 168 // specified as BINDATA in the relevant .rc file.
170 CONTENT_EXPORT base::StringPiece GetDataResource(int resource_id); 169 base::StringPiece GetDataResource(int resource_id);
171 170
172 // Glue to access the clipboard. 171 // Glue to access the clipboard.
173 172
174 // Get a clipboard that can be used to construct a ScopedClipboardWriterGlue. 173 // Get a clipboard that can be used to construct a ScopedClipboardWriterGlue.
175 CONTENT_EXPORT ui::Clipboard* ClipboardGetClipboard(); 174 ui::Clipboard* ClipboardGetClipboard();
176 175
177 // Get a sequence number which uniquely identifies clipboard state. 176 // Get a sequence number which uniquely identifies clipboard state.
178 CONTENT_EXPORT uint64 ClipboardGetSequenceNumber(ui::Clipboard::Buffer buffer); 177 uint64 ClipboardGetSequenceNumber(ui::Clipboard::Buffer buffer);
179 178
180 // Tests whether the clipboard contains a certain format 179 // Tests whether the clipboard contains a certain format
181 CONTENT_EXPORT bool ClipboardIsFormatAvailable( 180 bool ClipboardIsFormatAvailable(const ui::Clipboard::FormatType& format,
182 const ui::Clipboard::FormatType& format, 181 ui::Clipboard::Buffer buffer);
183 ui::Clipboard::Buffer buffer);
184 182
185 // Reads the available types from the clipboard, if available. 183 // Reads the available types from the clipboard, if available.
186 CONTENT_EXPORT void ClipboardReadAvailableTypes(ui::Clipboard::Buffer buffer, 184 void ClipboardReadAvailableTypes(ui::Clipboard::Buffer buffer,
187 std::vector<string16>* types, 185 std::vector<string16>* types,
188 bool* contains_filenames); 186 bool* contains_filenames);
189 187
190 // Reads UNICODE text from the clipboard, if available. 188 // Reads UNICODE text from the clipboard, if available.
191 CONTENT_EXPORT void ClipboardReadText(ui::Clipboard::Buffer buffer, 189 void ClipboardReadText(ui::Clipboard::Buffer buffer, string16* result);
192 string16* result);
193 190
194 // Reads ASCII text from the clipboard, if available. 191 // Reads ASCII text from the clipboard, if available.
195 CONTENT_EXPORT void ClipboardReadAsciiText(ui::Clipboard::Buffer buffer, 192 void ClipboardReadAsciiText(ui::Clipboard::Buffer buffer, std::string* result);
196 std::string* result);
197 193
198 // Reads HTML from the clipboard, if available. 194 // Reads HTML from the clipboard, if available.
199 CONTENT_EXPORT void ClipboardReadHTML(ui::Clipboard::Buffer buffer, 195 void ClipboardReadHTML(ui::Clipboard::Buffer buffer, string16* markup,
200 string16* markup, 196 GURL* url, uint32* fragment_start,
201 GURL* url, uint32* fragment_start, 197 uint32* fragment_end);
202 uint32* fragment_end);
203 198
204 CONTENT_EXPORT void ClipboardReadImage(ui::Clipboard::Buffer buffer, 199 void ClipboardReadImage(ui::Clipboard::Buffer buffer, std::string* data);
205 std::string* data);
206 200
207 // Embedders implement this function to return the list of plugins to Webkit. 201 // Embedders implement this function to return the list of plugins to Webkit.
208 CONTENT_EXPORT void GetPlugins(bool refresh, 202 void GetPlugins(bool refresh,
209 std::vector<webkit::WebPluginInfo>* plugins); 203 std::vector<webkit::WebPluginInfo>* plugins);
210 204
211 // Returns true if the protocol implemented to serve |url| supports features 205 // Returns true if the protocol implemented to serve |url| supports features
212 // required by the media engine. 206 // required by the media engine.
213 CONTENT_EXPORT bool IsProtocolSupportedForMedia(const GURL& url); 207 bool IsProtocolSupportedForMedia(const GURL& url);
214 208
215 // Returns the locale that this instance of webkit is running as. This is of 209 // Returns the locale that this instance of webkit is running as. This is of
216 // the form language-country (e.g., en-US or pt-BR). 210 // the form language-country (e.g., en-US or pt-BR).
217 CONTENT_EXPORT std::string GetWebKitLocale(); 211 std::string GetWebKitLocale();
218 212
219 // Returns true if the embedder is running in single process mode. 213 // Returns true if the embedder is running in single process mode.
220 CONTENT_EXPORT bool IsSingleProcess(); 214 bool IsSingleProcess();
221 215
222 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- 216 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER ---------------------------------
223 217
224 218
225 } // namespace webkit_glue 219 } // namespace webkit_glue
226 220
227 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ 221 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_
OLDNEW
« no previous file with comments | « webkit/glue/scoped_clipboard_writer_glue.h ('k') | webkit/glue/websocketstreamhandle_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698