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/gfx/skia_utils.h" | |
12 #include "base/iat_patch.h" | 11 #include "base/iat_patch.h" |
13 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
14 #include "base/scoped_clipboard_writer.h" | 13 #include "base/scoped_clipboard_writer.h" |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "chrome/app/chrome_dll_resource.h" | 15 #include "chrome/app/chrome_dll_resource.h" |
17 #include "chrome/browser/autocomplete/autocomplete_popup.h" | 16 #include "chrome/browser/autocomplete/autocomplete_popup.h" |
18 #include "chrome/browser/autocomplete/edit_drop_target.h" | 17 #include "chrome/browser/autocomplete/edit_drop_target.h" |
19 #include "chrome/browser/autocomplete/keyword_provider.h" | 18 #include "chrome/browser/autocomplete/keyword_provider.h" |
20 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/controller.h" | 20 #include "chrome/browser/controller.h" |
(...skipping 2419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2441 } | 2440 } |
2442 | 2441 |
2443 void AutocompleteEditView::RepaintDropHighlight(int position) { | 2442 void AutocompleteEditView::RepaintDropHighlight(int position) { |
2444 if ((position != -1) && (position <= GetTextLength())) { | 2443 if ((position != -1) && (position <= GetTextLength())) { |
2445 const POINT min_loc(PosFromChar(position)); | 2444 const POINT min_loc(PosFromChar(position)); |
2446 const RECT highlight_bounds = {min_loc.x - 1, font_y_adjustment_, | 2445 const RECT highlight_bounds = {min_loc.x - 1, font_y_adjustment_, |
2447 min_loc.x + 2, font_ascent_ + font_descent_ + font_y_adjustment_}; | 2446 min_loc.x + 2, font_ascent_ + font_descent_ + font_y_adjustment_}; |
2448 InvalidateRect(&highlight_bounds, false); | 2447 InvalidateRect(&highlight_bounds, false); |
2449 } | 2448 } |
2450 } | 2449 } |
OLD | NEW |