| 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/files/file_path.h" | |
| 13 #include "base/logging.h" | 12 #include "base/logging.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/sys_string_conversions.h" | 15 #include "base/strings/sys_string_conversions.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/win/scoped_hglobal.h" | 17 #include "base/win/scoped_hglobal.h" |
| 19 #include "net/base/filename_util.h" | 18 #include "net/base/filename_util.h" |
| 20 #include "ui/base/clipboard/clipboard.h" | 19 #include "ui/base/clipboard/clipboard.h" |
| 21 #include "ui/base/clipboard/custom_data_helper.h" | 20 #include "ui/base/clipboard/custom_data_helper.h" |
| 22 #include "url/gurl.h" | 21 #include "url/gurl.h" |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 end_fragment_start + end_fragment_str.length())); | 493 end_fragment_start + end_fragment_str.length())); |
| 495 } | 494 } |
| 496 } else { | 495 } else { |
| 497 *fragment_start = cf_html.find('>', tag_start) + 1; | 496 *fragment_start = cf_html.find('>', tag_start) + 1; |
| 498 size_t tag_end = cf_html.rfind("<!--EndFragment", std::string::npos); | 497 size_t tag_end = cf_html.rfind("<!--EndFragment", std::string::npos); |
| 499 *fragment_end = cf_html.rfind('<', tag_end); | 498 *fragment_end = cf_html.rfind('<', tag_end); |
| 500 } | 499 } |
| 501 } | 500 } |
| 502 | 501 |
| 503 } // namespace ui | 502 } // namespace ui |
| OLD | NEW |