| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h" | 5 #include "chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h" |
| 6 | 6 |
| 7 #include <objidl.h> |
| 8 #include <commctrl.h> |
| 7 #include <dwmapi.h> | 9 #include <dwmapi.h> |
| 8 | 10 |
| 9 #include "app/gfx/chrome_canvas.h" | 11 #include "app/gfx/chrome_canvas.h" |
| 10 #include "app/gfx/color_utils.h" | 12 #include "app/gfx/color_utils.h" |
| 11 #include "app/gfx/insets.h" | 13 #include "app/gfx/insets.h" |
| 12 #include "app/gfx/path.h" | 14 #include "app/gfx/path.h" |
| 13 #include "app/l10n_util.h" | 15 #include "app/l10n_util.h" |
| 14 #include "app/resource_bundle.h" | 16 #include "app/resource_bundle.h" |
| 15 #include "app/win_util.h" | 17 #include "app/win_util.h" |
| 16 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" | 18 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" |
| (...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 // Allow the window blur effect to show through the popup background. | 861 // Allow the window blur effect to show through the popup background. |
| 860 SkPaint paint; | 862 SkPaint paint; |
| 861 SkColor transparency = win_util::ShouldUseVistaFrame() ? | 863 SkColor transparency = win_util::ShouldUseVistaFrame() ? |
| 862 kGlassPopupTransparency : kOpaquePopupTransparency; | 864 kGlassPopupTransparency : kOpaquePopupTransparency; |
| 863 paint.setColor(SkColorSetARGB(transparency, 255, 255, 255)); | 865 paint.setColor(SkColorSetARGB(transparency, 255, 255, 255)); |
| 864 paint.setPorterDuffXfermode(SkPorterDuff::kDstIn_Mode); | 866 paint.setPorterDuffXfermode(SkPorterDuff::kDstIn_Mode); |
| 865 paint.setStyle(SkPaint::kFill_Style); | 867 paint.setStyle(SkPaint::kFill_Style); |
| 866 canvas->FillRectInt(0, 0, canvas->getDevice()->width(), | 868 canvas->FillRectInt(0, 0, canvas->getDevice()->width(), |
| 867 canvas->getDevice()->height(), paint); | 869 canvas->getDevice()->height(), paint); |
| 868 } | 870 } |
| OLD | NEW |