| 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> | 7 #include <objidl.h> |
| 8 #include <commctrl.h> | 8 #include <commctrl.h> |
| 9 #include <dwmapi.h> | 9 #include <dwmapi.h> |
| 10 | 10 |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 DwmEnableBlurBehindWindow(GetWidget()->GetNativeView(), &bb); | 866 DwmEnableBlurBehindWindow(GetWidget()->GetNativeView(), &bb); |
| 867 } | 867 } |
| 868 | 868 |
| 869 void AutocompletePopupContentsView::MakeCanvasTransparent( | 869 void AutocompletePopupContentsView::MakeCanvasTransparent( |
| 870 gfx::Canvas* canvas) { | 870 gfx::Canvas* canvas) { |
| 871 // Allow the window blur effect to show through the popup background. | 871 // Allow the window blur effect to show through the popup background. |
| 872 SkPaint paint; | 872 SkPaint paint; |
| 873 SkColor transparency = GetThemeProvider()->ShouldUseNativeFrame() ? | 873 SkColor transparency = GetThemeProvider()->ShouldUseNativeFrame() ? |
| 874 kGlassPopupTransparency : kOpaquePopupTransparency; | 874 kGlassPopupTransparency : kOpaquePopupTransparency; |
| 875 paint.setColor(SkColorSetARGB(transparency, 255, 255, 255)); | 875 paint.setColor(SkColorSetARGB(transparency, 255, 255, 255)); |
| 876 paint.setPorterDuffXfermode(SkPorterDuff::kDstIn_Mode); | 876 paint.setXfermodeMode(SkXfermode::kDstIn_Mode); |
| 877 paint.setStyle(SkPaint::kFill_Style); | 877 paint.setStyle(SkPaint::kFill_Style); |
| 878 canvas->FillRectInt(0, 0, canvas->getDevice()->width(), | 878 canvas->FillRectInt(0, 0, canvas->getDevice()->width(), |
| 879 canvas->getDevice()->height(), paint); | 879 canvas->getDevice()->height(), paint); |
| 880 } | 880 } |
| OLD | NEW |