diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-10 21:08:21 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-10 21:08:21 +0000 |
commit | 2dfeaf9c751b9ff269ca8bcd8f9e4902a0c9012c (patch) | |
tree | 86e7ab4c054af5723245dc0bdead5c08a308a466 /chrome/common | |
parent | 6f1d18ebd4dd4315b02197c4593ad905a9049f8b (diff) | |
download | chromium_src-2dfeaf9c751b9ff269ca8bcd8f9e4902a0c9012c.zip chromium_src-2dfeaf9c751b9ff269ca8bcd8f9e4902a0c9012c.tar.gz chromium_src-2dfeaf9c751b9ff269ca8bcd8f9e4902a0c9012c.tar.bz2 |
Move clipboard from app/ to ui/base
BUG=none
TEST=none
TBR=brettw
Review URL: http://codereview.chromium.org/6135006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/render_messages.h | 16 | ||||
-rw-r--r-- | chrome/common/render_messages_internal.h | 18 |
2 files changed, 17 insertions, 17 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 8f6a5f7..2902124 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -11,7 +11,6 @@ // TODO(erg): This list has been temporarily annotated by erg while doing work // on which headers to pull out. -#include "app/clipboard/clipboard.h" // enum #include "base/basictypes.h" #include "base/ref_counted.h" #include "base/string16.h" @@ -23,6 +22,7 @@ #include "chrome/common/webkit_param_traits.h" #include "ipc/ipc_message_utils.h" #include "ipc/ipc_platform_file.h" // ifdefed typedef. +#include "ui/base/clipboard/clipboard.h" // enum #include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status #include "webkit/fileapi/file_system_types.h" // enum fileapi::FileSystemType @@ -443,30 +443,30 @@ struct ParamTraits<URLPattern> { }; template <> -struct ParamTraits<Clipboard::Buffer> { - typedef Clipboard::Buffer param_type; +struct ParamTraits<ui::Clipboard::Buffer> { + typedef ui::Clipboard::Buffer param_type; static void Write(Message* m, const param_type& p) { m->WriteInt(p); } static bool Read(const Message* m, void** iter, param_type* p) { int buffer; - if (!m->ReadInt(iter, &buffer) || !Clipboard::IsValidBuffer(buffer)) + if (!m->ReadInt(iter, &buffer) || !ui::Clipboard::IsValidBuffer(buffer)) return false; - *p = Clipboard::FromInt(buffer); + *p = ui::Clipboard::FromInt(buffer); return true; } static void Log(const param_type& p, std::string* l) { std::string type; switch (p) { - case Clipboard::BUFFER_STANDARD: + case ui::Clipboard::BUFFER_STANDARD: type = "BUFFER_STANDARD"; break; #if defined(USE_X11) - case Clipboard::BUFFER_SELECTION: + case ui::Clipboard::BUFFER_SELECTION: type = "BUFFER_SELECTION"; break; #endif - case Clipboard::BUFFER_DRAG: + case ui::Clipboard::BUFFER_DRAG: type = "BUFFER_DRAG"; break; default: diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 48280a6..5cc366e 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -1590,41 +1590,41 @@ IPC_SYNC_MESSAGE_ROUTED1_0(ViewHostMsg_DestroyPluginContainer, // This message is used when the object list does not contain a bitmap. IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardWriteObjectsAsync, - Clipboard::ObjectMap /* objects */) + ui::Clipboard::ObjectMap /* objects */) // This message is used when the object list contains a bitmap. // It is synchronized so that the renderer knows when it is safe to // free the shared memory used to transfer the bitmap. IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_ClipboardWriteObjectsSync, - Clipboard::ObjectMap /* objects */, + ui::Clipboard::ObjectMap /* objects */, base::SharedMemoryHandle /* bitmap handle */) IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_ClipboardIsFormatAvailable, std::string /* format */, - Clipboard::Buffer /* buffer */, + ui::Clipboard::Buffer /* buffer */, bool /* result */) IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_ClipboardReadText, - Clipboard::Buffer /* buffer */, + ui::Clipboard::Buffer /* buffer */, string16 /* result */) IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_ClipboardReadAsciiText, - Clipboard::Buffer /* buffer */, + ui::Clipboard::Buffer /* buffer */, std::string /* result */) IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ClipboardReadHTML, - Clipboard::Buffer /* buffer */, + ui::Clipboard::Buffer /* buffer */, string16 /* markup */, GURL /* url */) IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_ClipboardReadAvailableTypes, - Clipboard::Buffer /* buffer */, + ui::Clipboard::Buffer /* buffer */, bool /* result */, std::vector<string16> /* types */, bool /* contains filenames */) IPC_SYNC_MESSAGE_CONTROL2_3(ViewHostMsg_ClipboardReadData, - Clipboard::Buffer /* buffer */, + ui::Clipboard::Buffer /* buffer */, string16 /* type */, bool /* succeeded */, string16 /* data */, string16 /* metadata */) IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ClipboardReadFilenames, - Clipboard::Buffer /* buffer */, + ui::Clipboard::Buffer /* buffer */, bool /* result */, std::vector<string16> /* filenames */) |