Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit.cc

Issue 13101: Move base/gfx/skia_util to skia/ext/skia_util_win.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/gfx/skia_utils.cc ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
22 #include "chrome/browser/drag_utils.h" 21 #include "chrome/browser/drag_utils.h"
23 #include "chrome/browser/profile.h" 22 #include "chrome/browser/profile.h"
24 #include "chrome/browser/tab_contents.h" 23 #include "chrome/browser/tab_contents.h"
25 #include "chrome/browser/template_url.h" 24 #include "chrome/browser/template_url.h"
26 #include "chrome/browser/template_url_model.h" 25 #include "chrome/browser/template_url_model.h"
27 #include "chrome/browser/url_fixer_upper.h" 26 #include "chrome/browser/url_fixer_upper.h"
28 #include "chrome/browser/user_metrics.h" 27 #include "chrome/browser/user_metrics.h"
29 #include "chrome/browser/views/location_bar_view.h" 28 #include "chrome/browser/views/location_bar_view.h"
30 #include "chrome/common/clipboard_service.h" 29 #include "chrome/common/clipboard_service.h"
31 #include "chrome/common/gfx/chrome_canvas.h" 30 #include "chrome/common/gfx/chrome_canvas.h"
32 #include "chrome/common/gfx/utils.h" 31 #include "chrome/common/gfx/utils.h"
33 #include "chrome/common/l10n_util.h" 32 #include "chrome/common/l10n_util.h"
34 #include "chrome/common/os_exchange_data.h" 33 #include "chrome/common/os_exchange_data.h"
35 #include "chrome/common/win_util.h" 34 #include "chrome/common/win_util.h"
36 #include "chrome/views/accessibility/autocomplete_accessibility.h" 35 #include "chrome/views/accessibility/autocomplete_accessibility.h"
37 #include "googleurl/src/url_util.h" 36 #include "googleurl/src/url_util.h"
37 #include "skia/ext/skia_utils_win.h"
38 38
39 #include "generated_resources.h" 39 #include "generated_resources.h"
40 40
41 #pragma comment(lib, "oleacc.lib") // Needed for accessibility support. 41 #pragma comment(lib, "oleacc.lib") // Needed for accessibility support.
42 42
43 /////////////////////////////////////////////////////////////////////////////// 43 ///////////////////////////////////////////////////////////////////////////////
44 // AutocompleteEditModel 44 // AutocompleteEditModel
45 45
46 // A single AutocompleteController used solely for making synchronous calls to 46 // A single AutocompleteController used solely for making synchronous calls to
47 // determine how to deal with the clipboard contents for Paste And Go 47 // determine how to deal with the clipboard contents for Paste And Go
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after
2447 } 2447 }
2448 2448
2449 void AutocompleteEditView::RepaintDropHighlight(int position) { 2449 void AutocompleteEditView::RepaintDropHighlight(int position) {
2450 if ((position != -1) && (position <= GetTextLength())) { 2450 if ((position != -1) && (position <= GetTextLength())) {
2451 const POINT min_loc(PosFromChar(position)); 2451 const POINT min_loc(PosFromChar(position));
2452 const RECT highlight_bounds = {min_loc.x - 1, font_y_adjustment_, 2452 const RECT highlight_bounds = {min_loc.x - 1, font_y_adjustment_,
2453 min_loc.x + 2, font_ascent_ + font_descent_ + font_y_adjustment_}; 2453 min_loc.x + 2, font_ascent_ + font_descent_ + font_y_adjustment_};
2454 InvalidateRect(&highlight_bounds, false); 2454 InvalidateRect(&highlight_bounds, false);
2455 } 2455 }
2456 } 2456 }
OLDNEW
« no previous file with comments | « base/gfx/skia_utils.cc ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698