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_popup_view_win.h" | 5 #include "chrome/browser/autocomplete/autocomplete_popup_view_win.h" |
6 | 6 |
7 // TODO(deanm): Clean up these includes, not going to fight it now. | 7 // TODO(deanm): Clean up these includes, not going to fight it now. |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
11 #include <atlmisc.h> | 11 #include <atlmisc.h> |
12 #include <cmath> | 12 #include <cmath> |
13 | 13 |
14 #include "base/scoped_ptr.h" | |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "base/win_util.h" | 15 #include "base/win_util.h" |
17 #include "chrome/browser/autocomplete/autocomplete.h" | 16 #include "chrome/browser/autocomplete/autocomplete.h" |
18 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 17 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
19 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 18 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
20 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/net/dns_global.h" | 20 #include "chrome/browser/net/dns_global.h" |
22 #include "chrome/browser/profile.h" | 21 #include "chrome/browser/profile.h" |
23 #include "chrome/browser/search_engines/template_url.h" | 22 #include "chrome/browser/search_engines/template_url.h" |
24 #include "chrome/browser/search_engines/template_url_model.h" | 23 #include "chrome/browser/search_engines/template_url_model.h" |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 } | 656 } |
658 | 657 |
659 void AutocompletePopupViewWin::DrawStar(HDC dc, int x, int y) const { | 658 void AutocompletePopupViewWin::DrawStar(HDC dc, int x, int y) const { |
660 ChromeCanvas canvas(star_->width(), star_->height(), false); | 659 ChromeCanvas canvas(star_->width(), star_->height(), false); |
661 // Make the background completely transparent. | 660 // Make the background completely transparent. |
662 canvas.drawColor(SK_ColorBLACK, SkPorterDuff::kClear_Mode); | 661 canvas.drawColor(SK_ColorBLACK, SkPorterDuff::kClear_Mode); |
663 canvas.DrawBitmapInt(*star_, 0, 0); | 662 canvas.DrawBitmapInt(*star_, 0, 0); |
664 canvas.getTopPlatformDevice().drawToHDC( | 663 canvas.getTopPlatformDevice().drawToHDC( |
665 dc, mirroring_context_->GetLeft(x, x + star_->width()), y, NULL); | 664 dc, mirroring_context_->GetLeft(x, x + star_->width()), y, NULL); |
666 } | 665 } |
OLD | NEW |