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

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

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