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_win.h" | 5 #include "ui/base/dragdrop/os_exchange_data_provider_win.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/i18n/file_util_icu.h" | 11 #include "base/i18n/file_util_icu.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/pickle.h" | 13 #include "base/pickle.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/win/scoped_hglobal.h" | 15 #include "base/win/scoped_hglobal.h" |
16 #include "grit/ui_strings.h" | |
17 #include "net/base/filename_util.h" | 16 #include "net/base/filename_util.h" |
18 #include "ui/base/clipboard/clipboard.h" | 17 #include "ui/base/clipboard/clipboard.h" |
19 #include "ui/base/clipboard/clipboard_util_win.h" | 18 #include "ui/base/clipboard/clipboard_util_win.h" |
20 #include "ui/base/dragdrop/file_info.h" | 19 #include "ui/base/dragdrop/file_info.h" |
21 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
| 21 #include "ui/strings/grit/ui_strings.h" |
22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
23 | 23 |
24 namespace ui { | 24 namespace ui { |
25 | 25 |
26 static const OSExchangeData::CustomFormat& GetRendererTaintCustomType() { | 26 static const OSExchangeData::CustomFormat& GetRendererTaintCustomType() { |
27 CR_DEFINE_STATIC_LOCAL( | 27 CR_DEFINE_STATIC_LOCAL( |
28 ui::OSExchangeData::CustomFormat, | 28 ui::OSExchangeData::CustomFormat, |
29 format, | 29 format, |
30 (ui::Clipboard::GetFormatType("chromium/x-renderer-taint"))); | 30 (ui::Clipboard::GetFormatType("chromium/x-renderer-taint"))); |
31 return format; | 31 return format; |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 | 1048 |
1049 /////////////////////////////////////////////////////////////////////////////// | 1049 /////////////////////////////////////////////////////////////////////////////// |
1050 // OSExchangeData, public: | 1050 // OSExchangeData, public: |
1051 | 1051 |
1052 // static | 1052 // static |
1053 OSExchangeData::Provider* OSExchangeData::CreateProvider() { | 1053 OSExchangeData::Provider* OSExchangeData::CreateProvider() { |
1054 return new OSExchangeDataProviderWin(); | 1054 return new OSExchangeDataProviderWin(); |
1055 } | 1055 } |
1056 | 1056 |
1057 } // namespace ui | 1057 } // namespace ui |
OLD | NEW |