| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/autocomplete/autocomplete_edit.h" | 5 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
| 6 | 6 |
| 7 #include <locale> | 7 #include <locale> |
| 8 | 8 |
| 9 #include "base/base_drag_source.h" | 9 #include "base/base_drag_source.h" |
| 10 #include "base/clipboard.h" | 10 #include "base/clipboard.h" |
| 11 #include "base/iat_patch.h" | 11 #include "base/iat_patch.h" |
| 12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "base/scoped_clipboard_writer.h" | 13 #include "base/scoped_clipboard_writer.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "chrome/app/chrome_dll_resource.h" | 15 #include "chrome/app/chrome_dll_resource.h" |
| 16 #include "chrome/browser/autocomplete/autocomplete_accessibility.h" | 16 #include "chrome/browser/autocomplete/autocomplete_accessibility.h" |
| 17 #include "chrome/browser/autocomplete/autocomplete_popup.h" | 17 #include "chrome/browser/autocomplete/autocomplete_popup.h" |
| 18 #include "chrome/browser/autocomplete/edit_drop_target.h" | 18 #include "chrome/browser/autocomplete/edit_drop_target.h" |
| 19 #include "chrome/browser/autocomplete/keyword_provider.h" | 19 #include "chrome/browser/autocomplete/keyword_provider.h" |
| 20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
| 21 #include "chrome/browser/controller.h" | 21 #include "chrome/browser/controller.h" |
| 22 #include "chrome/browser/drag_utils.h" | 22 #include "chrome/browser/drag_utils.h" |
| 23 #include "chrome/browser/metrics/user_metrics.h" | 23 #include "chrome/browser/metrics/user_metrics.h" |
| 24 #include "chrome/browser/net/url_fixer_upper.h" |
| 24 #include "chrome/browser/profile.h" | 25 #include "chrome/browser/profile.h" |
| 25 #include "chrome/browser/search_engines/template_url.h" | 26 #include "chrome/browser/search_engines/template_url.h" |
| 26 #include "chrome/browser/search_engines/template_url_model.h" | 27 #include "chrome/browser/search_engines/template_url_model.h" |
| 27 #include "chrome/browser/tab_contents/tab_contents.h" | 28 #include "chrome/browser/tab_contents/tab_contents.h" |
| 28 #include "chrome/browser/url_fixer_upper.h" | |
| 29 #include "chrome/browser/views/location_bar_view.h" | 29 #include "chrome/browser/views/location_bar_view.h" |
| 30 #include "chrome/common/clipboard_service.h" | 30 #include "chrome/common/clipboard_service.h" |
| 31 #include "chrome/common/gfx/chrome_canvas.h" | 31 #include "chrome/common/gfx/chrome_canvas.h" |
| 32 #include "chrome/common/gfx/utils.h" | 32 #include "chrome/common/gfx/utils.h" |
| 33 #include "chrome/common/l10n_util.h" | 33 #include "chrome/common/l10n_util.h" |
| 34 #include "chrome/common/os_exchange_data.h" | 34 #include "chrome/common/os_exchange_data.h" |
| 35 #include "chrome/common/win_util.h" | 35 #include "chrome/common/win_util.h" |
| 36 #include "googleurl/src/url_util.h" | 36 #include "googleurl/src/url_util.h" |
| 37 #include "skia/ext/skia_utils_win.h" | 37 #include "skia/ext/skia_utils_win.h" |
| 38 | 38 |
| (...skipping 2416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2455 } | 2455 } |
| 2456 | 2456 |
| 2457 void AutocompleteEditView::RepaintDropHighlight(int position) { | 2457 void AutocompleteEditView::RepaintDropHighlight(int position) { |
| 2458 if ((position != -1) && (position <= GetTextLength())) { | 2458 if ((position != -1) && (position <= GetTextLength())) { |
| 2459 const POINT min_loc(PosFromChar(position)); | 2459 const POINT min_loc(PosFromChar(position)); |
| 2460 const RECT highlight_bounds = {min_loc.x - 1, font_y_adjustment_, | 2460 const RECT highlight_bounds = {min_loc.x - 1, font_y_adjustment_, |
| 2461 min_loc.x + 2, font_ascent_ + font_descent_ + font_y_adjustment_}; | 2461 min_loc.x + 2, font_ascent_ + font_descent_ + font_y_adjustment_}; |
| 2462 InvalidateRect(&highlight_bounds, false); | 2462 InvalidateRect(&highlight_bounds, false); |
| 2463 } | 2463 } |
| 2464 } | 2464 } |
| OLD | NEW |