OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/dragdrop/os_exchange_data_provider_aurax11.h" | 5 #include "ui/base/dragdrop/os_exchange_data_provider_aurax11.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.h" |
9 #include "base/message_loop/message_pump_aurax11.h" | 9 #include "base/message_loop/message_pump_aurax11.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
13 #include "ui/base/clipboard/clipboard.h" | 13 #include "ui/base/clipboard/clipboard.h" |
14 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 14 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
15 #include "ui/base/x/selection_utils.h" | 15 #include "ui/base/x/selection_utils.h" |
16 #include "ui/base/x/x11_util.h" | 16 #include "ui/base/x/x11_util.h" |
17 | 17 |
18 // Note: the GetBlah() methods are used immediately by the | 18 // Note: the GetBlah() methods are used immediately by the |
19 // web_contents_view_aura.cc:PrepareWebDropData(), while the omnibox is a | 19 // web_contents_view_aura.cc:PrepareDropData(), while the omnibox is a |
20 // little more discriminating and calls HasBlah() before trying to get the | 20 // little more discriminating and calls HasBlah() before trying to get the |
21 // information. | 21 // information. |
22 | 22 |
23 namespace ui { | 23 namespace ui { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const char kDndSelection[] = "XdndSelection"; | 27 const char kDndSelection[] = "XdndSelection"; |
28 | 28 |
29 const char* kAtomsToCache[] = { | 29 const char* kAtomsToCache[] = { |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 372 |
373 /////////////////////////////////////////////////////////////////////////////// | 373 /////////////////////////////////////////////////////////////////////////////// |
374 // OSExchangeData, public: | 374 // OSExchangeData, public: |
375 | 375 |
376 // static | 376 // static |
377 OSExchangeData::Provider* OSExchangeData::CreateProvider() { | 377 OSExchangeData::Provider* OSExchangeData::CreateProvider() { |
378 return new OSExchangeDataProviderAuraX11(); | 378 return new OSExchangeDataProviderAuraX11(); |
379 } | 379 } |
380 | 380 |
381 } // namespace ui | 381 } // namespace ui |
OLD | NEW |