OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_aura.h" | 5 #include "ui/base/dragdrop/os_exchange_data_provider_aura.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "net/base/net_util.h" | 9 #include "net/base/net_util.h" |
10 | 10 |
11 namespace ui { | 11 namespace ui { |
12 | 12 |
13 OSExchangeDataProviderAura::OSExchangeDataProviderAura() : formats_(0) {} | 13 OSExchangeDataProviderAura::OSExchangeDataProviderAura() : formats_(0) {} |
14 | 14 |
| 15 OSExchangeDataProviderAura::~OSExchangeDataProviderAura() {} |
| 16 |
15 void OSExchangeDataProviderAura::SetString(const string16& data) { | 17 void OSExchangeDataProviderAura::SetString(const string16& data) { |
16 string_ = data; | 18 string_ = data; |
17 formats_ |= OSExchangeData::STRING; | 19 formats_ |= OSExchangeData::STRING; |
18 } | 20 } |
19 | 21 |
20 void OSExchangeDataProviderAura::SetURL(const GURL& url, | 22 void OSExchangeDataProviderAura::SetURL(const GURL& url, |
21 const string16& title) { | 23 const string16& title) { |
22 url_ = url; | 24 url_ = url; |
23 title_ = title; | 25 title_ = title; |
24 formats_ |= OSExchangeData::URL; | 26 formats_ |= OSExchangeData::URL; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 162 } |
161 | 163 |
162 // static | 164 // static |
163 OSExchangeData::CustomFormat | 165 OSExchangeData::CustomFormat |
164 OSExchangeData::RegisterCustomFormat(const std::string& type) { | 166 OSExchangeData::RegisterCustomFormat(const std::string& type) { |
165 // TODO(davemoore) Implement this for aura. | 167 // TODO(davemoore) Implement this for aura. |
166 return NULL; | 168 return NULL; |
167 } | 169 } |
168 | 170 |
169 } // namespace ui | 171 } // namespace ui |
OLD | NEW |