| 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/clipboard/clipboard_util_win.h" | 5 #include "ui/base/clipboard/clipboard_util_win.h" |
| 6 | 6 |
| 7 #include <shellapi.h> | 7 #include <shellapi.h> |
| 8 #include <shlwapi.h> | 8 #include <shlwapi.h> |
| 9 #include <wininet.h> // For INTERNET_MAX_URL_LENGTH. | 9 #include <wininet.h> // For INTERNET_MAX_URL_LENGTH. |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/scoped_handle.h" | |
| 14 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 15 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/win/scoped_hglobal.h" | 16 #include "base/win/scoped_hglobal.h" |
| 18 #include "ui/base/clipboard/clipboard.h" | 17 #include "ui/base/clipboard/clipboard.h" |
| 19 #include "ui/base/clipboard/custom_data_helper.h" | 18 #include "ui/base/clipboard/custom_data_helper.h" |
| 20 | 19 |
| 21 namespace ui { | 20 namespace ui { |
| 22 | 21 |
| 23 namespace { | 22 namespace { |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 end_fragment_start + end_fragment_str.length())); | 503 end_fragment_start + end_fragment_str.length())); |
| 505 } | 504 } |
| 506 } else { | 505 } else { |
| 507 *fragment_start = cf_html.find('>', tag_start) + 1; | 506 *fragment_start = cf_html.find('>', tag_start) + 1; |
| 508 size_t tag_end = cf_html.rfind("<!--EndFragment", std::string::npos); | 507 size_t tag_end = cf_html.rfind("<!--EndFragment", std::string::npos); |
| 509 *fragment_end = cf_html.rfind('<', tag_end); | 508 *fragment_end = cf_html.rfind('<', tag_end); |
| 510 } | 509 } |
| 511 } | 510 } |
| 512 | 511 |
| 513 } // namespace ui | 512 } // namespace ui |
| OLD | NEW |