| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // Returns true if the plugins run in the same process as the renderer, and | 234 // Returns true if the plugins run in the same process as the renderer, and |
| 235 // false otherwise. | 235 // false otherwise. |
| 236 bool IsPluginRunningInRendererProcess(); | 236 bool IsPluginRunningInRendererProcess(); |
| 237 | 237 |
| 238 #if defined(OS_WIN) | 238 #if defined(OS_WIN) |
| 239 // Asks the browser to load the font. | 239 // Asks the browser to load the font. |
| 240 bool EnsureFontLoaded(HFONT font); | 240 bool EnsureFontLoaded(HFONT font); |
| 241 #endif | 241 #endif |
| 242 | 242 |
| 243 // Returns screen information corresponding to the given window. | 243 // Returns screen information corresponding to the given window. |
| 244 ScreenInfo GetScreenInfo(gfx::NativeView window); | 244 ScreenInfo GetScreenInfo(gfx::NativeViewId window); |
| 245 | 245 |
| 246 // Functions implemented by webkit_glue for WebKit ---------------------------- | 246 // Functions implemented by webkit_glue for WebKit ---------------------------- |
| 247 | 247 |
| 248 // Returns a bool indicating if the Null plugin should be enabled or not. | 248 // Returns a bool indicating if the Null plugin should be enabled or not. |
| 249 bool IsDefaultPluginEnabled(); | 249 bool IsDefaultPluginEnabled(); |
| 250 | 250 |
| 251 #if defined(OS_WIN) | 251 #if defined(OS_WIN) |
| 252 // Downloads the file specified by the URL. On sucess a WM_COPYDATA message | 252 // Downloads the file specified by the URL. On sucess a WM_COPYDATA message |
| 253 // will be sent to the caller_window. | 253 // will be sent to the caller_window. |
| 254 bool DownloadUrl(const std::string& url, HWND caller_window); | 254 bool DownloadUrl(const std::string& url, HWND caller_window); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 276 // coloring. | 276 // coloring. |
| 277 uint64 VisitedLinkHash(const char* canonical_url, size_t length); | 277 uint64 VisitedLinkHash(const char* canonical_url, size_t length); |
| 278 | 278 |
| 279 // Returns whether the given link hash is in the user's history. The hash must | 279 // Returns whether the given link hash is in the user's history. The hash must |
| 280 // have been generated by calling VisitedLinkHash(). | 280 // have been generated by calling VisitedLinkHash(). |
| 281 bool IsLinkVisited(uint64 link_hash); | 281 bool IsLinkVisited(uint64 link_hash); |
| 282 | 282 |
| 283 } // namespace webkit_glue | 283 } // namespace webkit_glue |
| 284 | 284 |
| 285 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 285 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| OLD | NEW |