OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/base/x/selection_utils.h" | 5 #include "ui/base/x/selection_utils.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
| 9 #include <algorithm> |
9 #include <set> | 10 #include <set> |
10 | 11 |
11 #include "base/i18n/icu_string_conversions.h" | 12 #include "base/i18n/icu_string_conversions.h" |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
13 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
14 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
16 #include "ui/base/clipboard/clipboard.h" | 17 #include "ui/base/clipboard/clipboard.h" |
17 #include "ui/base/x/x11_util.h" | 18 #include "ui/base/x/x11_util.h" |
18 #include "ui/gfx/x/x11_atom_cache.h" | 19 #include "ui/gfx/x/x11_atom_cache.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 248 |
248 void SelectionData::AssignTo(std::string* result) const { | 249 void SelectionData::AssignTo(std::string* result) const { |
249 *result = RefCountedMemoryToString(memory_); | 250 *result = RefCountedMemoryToString(memory_); |
250 } | 251 } |
251 | 252 |
252 void SelectionData::AssignTo(base::string16* result) const { | 253 void SelectionData::AssignTo(base::string16* result) const { |
253 *result = RefCountedMemoryToString16(memory_); | 254 *result = RefCountedMemoryToString16(memory_); |
254 } | 255 } |
255 | 256 |
256 } // namespace ui | 257 } // namespace ui |
OLD | NEW |