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