| 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 // This file implements the ScopedClipboardWriter class. Documentation on its | 5 // This file implements the ScopedClipboardWriter class. Documentation on its |
| 6 // purpose can be found in our header. Documentation on the format of the | 6 // purpose can be found in our header. Documentation on the format of the |
| 7 // parameters for each clipboard target can be found in clipboard.h. | 7 // parameters for each clipboard target can be found in clipboard.h. |
| 8 | 8 |
| 9 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 9 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 utf8_text.end())); | 132 utf8_text.end())); |
| 133 objects_[Clipboard::CBF_TEXT] = parameters; | 133 objects_[Clipboard::CBF_TEXT] = parameters; |
| 134 | 134 |
| 135 if (is_url) { | 135 if (is_url) { |
| 136 url_text_ = utf8_text; | 136 url_text_ = utf8_text; |
| 137 } else { | 137 } else { |
| 138 url_text_.clear(); | 138 url_text_.clear(); |
| 139 } | 139 } |
| 140 } | 140 } |
| 141 | 141 |
| 142 void ScopedClipboardWriter::Clear() { |
| 143 url_text_.clear(); |
| 144 objects_.clear(); |
| 145 } |
| 146 |
| 142 } // namespace ui | 147 } // namespace ui |
| OLD | NEW |