OLD | NEW |
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // Reads HTML from the clipboard, if available. | 183 // Reads HTML from the clipboard, if available. |
184 void ClipboardReadHTML(Clipboard::Buffer buffer, string16* markup, GURL* url); | 184 void ClipboardReadHTML(Clipboard::Buffer buffer, string16* markup, GURL* url); |
185 | 185 |
186 // Gets the directory where the application data and libraries exist. This | 186 // Gets the directory where the application data and libraries exist. This |
187 // may be a versioned subdirectory, or it may be the same directory as the | 187 // may be a versioned subdirectory, or it may be the same directory as the |
188 // GetExeDirectory(), depending on the embedder's implementation. | 188 // GetExeDirectory(), depending on the embedder's implementation. |
189 // Path is an output parameter to receive the path. | 189 // Path is an output parameter to receive the path. |
190 // Returns true if successful, false otherwise. | 190 // Returns true if successful, false otherwise. |
191 bool GetApplicationDirectory(FilePath* path); | 191 bool GetApplicationDirectory(FilePath* path); |
192 | 192 |
193 // Gets the URL where the inspector's HTML file resides. It must use the | |
194 // protocol returned by GetUIResourceProtocol. | |
195 GURL GetInspectorURL(); | |
196 | |
197 // Gets the protocol that is used for all user interface resources, including | |
198 // the Inspector. It must end with "-resource". | |
199 std::string GetUIResourceProtocol(); | |
200 | |
201 // Gets the directory where the launching executable resides on disk. | 193 // Gets the directory where the launching executable resides on disk. |
202 // Path is an output parameter to receive the path. | 194 // Path is an output parameter to receive the path. |
203 // Returns true if successful, false otherwise. | 195 // Returns true if successful, false otherwise. |
204 bool GetExeDirectory(FilePath* path); | 196 bool GetExeDirectory(FilePath* path); |
205 | 197 |
206 // Embedders implement this function to return the list of plugins to Webkit. | 198 // Embedders implement this function to return the list of plugins to Webkit. |
207 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins); | 199 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins); |
208 | 200 |
209 // Returns true if the plugins run in the same process as the renderer, and | 201 // Returns true if the plugins run in the same process as the renderer, and |
210 // false otherwise. | 202 // false otherwise. |
(...skipping 27 matching lines...) Expand all Loading... |
238 | 230 |
239 // Enable or disable the disk cache. Used for debugging. | 231 // Enable or disable the disk cache. Used for debugging. |
240 void SetCacheMode(bool enabled); | 232 void SetCacheMode(bool enabled); |
241 | 233 |
242 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 234 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
243 | 235 |
244 | 236 |
245 } // namespace webkit_glue | 237 } // namespace webkit_glue |
246 | 238 |
247 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 239 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |