| Index: content/common/clipboard_messages.cc
|
| diff --git a/content/common/clipboard_messages.cc b/content/common/clipboard_messages.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..12292a4f10e60905cb6944af692986bc6483295b
|
| --- /dev/null
|
| +++ b/content/common/clipboard_messages.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/common/clipboard_messages.h"
|
| +
|
| +#include "ui/base/clipboard/clipboard.h"
|
| +
|
| +namespace IPC {
|
| +
|
| +void ParamTraits<ui::Clipboard::FormatType>::Write(
|
| + Message* m, const param_type& p) {
|
| + m->WriteString(ui::Clipboard::FormatTypeToString(p));
|
| +}
|
| +
|
| +bool ParamTraits<ui::Clipboard::FormatType>::Read(
|
| + const Message* m, void** iter, param_type* r) {
|
| + std::string format_string;
|
| + if (!ReadParam(m, iter, &format_string))
|
| + return false;
|
| + *r = ui::Clipboard::StringToFormatType(format_string);
|
| + return true;
|
| +}
|
| +
|
| +void ParamTraits<ui::Clipboard::FormatType>::Log(
|
| + const param_type& p, std::string* l) {
|
| + *l = ui::Clipboard::FormatTypeToString(p);
|
| +}
|
| +
|
| +} // namespace IPC
|
|
|