| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef ChromiumBridge_h | 31 #ifndef ChromiumBridge_h |
| 32 #define ChromiumBridge_h | 32 #define ChromiumBridge_h |
| 33 | 33 |
| 34 #include "FileSystem.h" | 34 #include "FileSystem.h" |
| 35 #include "ImageSource.h" |
| 35 #include "LinkHash.h" | 36 #include "LinkHash.h" |
| 36 #include "PassRefPtr.h" | 37 #include "PassRefPtr.h" |
| 37 #include "PasteboardPrivate.h" | 38 #include "PasteboardPrivate.h" |
| 38 | 39 |
| 39 class NativeImageSkia; | |
| 40 | |
| 41 typedef struct NPObject NPObject; | 40 typedef struct NPObject NPObject; |
| 42 typedef struct _NPP NPP_t; | 41 typedef struct _NPP NPP_t; |
| 43 typedef NPP_t* NPP; | 42 typedef NPP_t* NPP; |
| 44 | 43 |
| 45 #if PLATFORM(WIN_OS) | 44 #if PLATFORM(WIN_OS) |
| 46 typedef struct HFONT__* HFONT; | 45 typedef struct HFONT__* HFONT; |
| 47 #endif | 46 #endif |
| 48 | 47 |
| 49 namespace WebCore { | 48 namespace WebCore { |
| 50 | 49 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 71 | 70 |
| 72 static String clipboardReadPlainText(PasteboardPrivate::ClipboardBuffer)
; | 71 static String clipboardReadPlainText(PasteboardPrivate::ClipboardBuffer)
; |
| 73 static void clipboardReadHTML(PasteboardPrivate::ClipboardBuffer, String
*, KURL*); | 72 static void clipboardReadHTML(PasteboardPrivate::ClipboardBuffer, String
*, KURL*); |
| 74 | 73 |
| 75 // Only the clipboardRead functions take a buffer argument because | 74 // Only the clipboardRead functions take a buffer argument because |
| 76 // Chromium currently uses a different technique to write to alternate | 75 // Chromium currently uses a different technique to write to alternate |
| 77 // clipboard buffers. | 76 // clipboard buffers. |
| 78 static void clipboardWriteSelection(const String&, const KURL&, const St
ring&, bool); | 77 static void clipboardWriteSelection(const String&, const KURL&, const St
ring&, bool); |
| 79 static void clipboardWritePlainText(const String&); | 78 static void clipboardWritePlainText(const String&); |
| 80 static void clipboardWriteURL(const KURL&, const String&); | 79 static void clipboardWriteURL(const KURL&, const String&); |
| 81 static void clipboardWriteImage(const NativeImageSkia*, const KURL&, con
st String&); | 80 static void clipboardWriteImage(NativeImagePtr, const KURL&, const Strin
g&); |
| 82 | 81 |
| 83 // Cookies ------------------------------------------------------------ | 82 // Cookies ------------------------------------------------------------ |
| 84 static void setCookies(const KURL& url, const KURL& firstPartyForCookies
, const String& value); | 83 static void setCookies(const KURL& url, const KURL& firstPartyForCookies
, const String& value); |
| 85 static String cookies(const KURL& url, const KURL& firstPartyForCookies)
; | 84 static String cookies(const KURL& url, const KURL& firstPartyForCookies)
; |
| 86 | 85 |
| 87 // DNS ---------------------------------------------------------------- | 86 // DNS ---------------------------------------------------------------- |
| 88 static void prefetchDNS(const String& hostname); | 87 static void prefetchDNS(const String& hostname); |
| 89 | 88 |
| 90 // File --------------------------------------------------------------- | 89 // File --------------------------------------------------------------- |
| 91 static bool fileExists(const String&); | 90 static bool fileExists(const String&); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 static bool isLinkVisited(LinkHash); | 204 static bool isLinkVisited(LinkHash); |
| 206 | 205 |
| 207 // Widget ------------------------------------------------------------- | 206 // Widget ------------------------------------------------------------- |
| 208 static void widgetSetCursor(Widget*, const Cursor&); | 207 static void widgetSetCursor(Widget*, const Cursor&); |
| 209 static void widgetSetFocus(Widget*); | 208 static void widgetSetFocus(Widget*); |
| 210 }; | 209 }; |
| 211 | 210 |
| 212 } // namespace WebCore | 211 } // namespace WebCore |
| 213 | 212 |
| 214 #endif | 213 #endif |
| OLD | NEW |