summaryrefslogtreecommitdiffstats
path: root/ui/base/clipboard/clipboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/clipboard/clipboard.h')
-rw-r--r--ui/base/clipboard/clipboard.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/base/clipboard/clipboard.h b/ui/base/clipboard/clipboard.h
index 5020882..a268512 100644
--- a/ui/base/clipboard/clipboard.h
+++ b/ui/base/clipboard/clipboard.h
@@ -65,6 +65,13 @@ class UI_EXPORT Clipboard : NON_EXPORTED_BASE(public base::ThreadChecker) {
std::string Serialize() const;
static FormatType Deserialize(const std::string& serialization);
+ // FormatType can be used as the key in a map on some platforms.
+#if defined(OS_WIN) || defined(USE_AURA)
+ bool operator<(const FormatType& other) const {
+ return data_ < other.data_;
+ }
+#endif
+
private:
friend class Clipboard;