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

Side by Side Diff: chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc

Issue 147121: Update WebKit to 45111 and Skia to 239 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 months 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tabs/tab_renderer_gtk.cc ('k') | chrome/browser/views/tabs/tab_overview_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698