| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #include "PluginData.h" | 64 #include "PluginData.h" |
| 65 #include <wtf/Assertions.h> | 65 #include <wtf/Assertions.h> |
| 66 | 66 |
| 67 // We are part of the WebKit implementation. | 67 // We are part of the WebKit implementation. |
| 68 using namespace WebKit; | 68 using namespace WebKit; |
| 69 | 69 |
| 70 namespace WebCore { | 70 namespace WebCore { |
| 71 | 71 |
| 72 // Clipboard ------------------------------------------------------------------ | 72 // Clipboard ------------------------------------------------------------------ |
| 73 | 73 |
| 74 COMPILE_ASSERT( | |
| 75 int(PasteboardPrivate::HTMLFormat) == int(WebClipboard::FormatHTML), | |
| 76 FormatHTML); | |
| 77 COMPILE_ASSERT( | |
| 78 int(PasteboardPrivate::BookmarkFormat) == int(WebClipboard::FormatBookmark), | |
| 79 FormatBookmark); | |
| 80 COMPILE_ASSERT( | |
| 81 int(PasteboardPrivate::WebSmartPasteFormat) == int(WebClipboard::FormatSmartPaste), | |
| 82 FormatSmartPaste); | |
| 83 | |
| 84 bool ChromiumBridge::clipboardIsFormatAvailable( | 74 bool ChromiumBridge::clipboardIsFormatAvailable( |
| 85 PasteboardPrivate::ClipboardFormat format) | 75 PasteboardPrivate::ClipboardFormat format) |
| 86 { | 76 { |
| 87 return webKitClient()->clipboard()->isFormatAvailable( | 77 return webKitClient()->clipboard()->isFormatAvailable( |
| 88 static_cast<WebClipboard::Format>(format)); | 78 static_cast<WebClipboard::Format>(format)); |
| 89 } | 79 } |
| 90 | 80 |
| 91 String ChromiumBridge::clipboardReadPlainText() | 81 String ChromiumBridge::clipboardReadPlainText() |
| 92 { | 82 { |
| 93 return webKitClient()->clipboard()->readPlainText(); | 83 return webKitClient()->clipboard()->readPlainText(); |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 | 492 |
| 503 return webKitClient()->visitedLinkHash(buffer.data(), buffer.length()); | 493 return webKitClient()->visitedLinkHash(buffer.data(), buffer.length()); |
| 504 } | 494 } |
| 505 | 495 |
| 506 bool ChromiumBridge::isLinkVisited(WebCore::LinkHash visitedLinkHash) | 496 bool ChromiumBridge::isLinkVisited(WebCore::LinkHash visitedLinkHash) |
| 507 { | 497 { |
| 508 return webKitClient()->isLinkVisited(visitedLinkHash); | 498 return webKitClient()->isLinkVisited(visitedLinkHash); |
| 509 } | 499 } |
| 510 | 500 |
| 511 } // namespace WebCore | 501 } // namespace WebCore |
| OLD | NEW |