| 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 <dwmapi.h> | 7 #include <dwmapi.h> |
| 8 | 8 |
| 9 #include "app/gfx/chrome_canvas.h" | 9 #include "app/gfx/chrome_canvas.h" |
| 10 #include "app/gfx/color_utils.h" | 10 #include "app/gfx/color_utils.h" |
| 11 #include "app/gfx/insets.h" | 11 #include "app/gfx/insets.h" |
| 12 #include "app/gfx/path.h" | 12 #include "app/gfx/path.h" |
| 13 #include "app/l10n_util.h" | 13 #include "app/l10n_util.h" |
| 14 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
| 15 #include "app/win_util.h" |
| 15 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" | 16 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" |
| 16 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 17 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
| 17 #include "chrome/browser/views/autocomplete/autocomplete_popup_win.h" | 18 #include "chrome/browser/views/autocomplete/autocomplete_popup_win.h" |
| 18 #include "chrome/common/win_util.h" | |
| 19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
| 20 #include "grit/theme_resources.h" | 20 #include "grit/theme_resources.h" |
| 21 #include "skia/include/SkShader.h" | 21 #include "skia/include/SkShader.h" |
| 22 #include "third_party/icu38/public/common/unicode/ubidi.h" | 22 #include "third_party/icu38/public/common/unicode/ubidi.h" |
| 23 #include "views/widget/widget.h" | 23 #include "views/widget/widget.h" |
| 24 | 24 |
| 25 // Colors for various components of the view. | 25 // Colors for various components of the view. |
| 26 static const SkColor kBackgroundColor = | 26 static const SkColor kBackgroundColor = |
| 27 color_utils::GetSysSkColor(COLOR_WINDOW); | 27 color_utils::GetSysSkColor(COLOR_WINDOW); |
| 28 static const SkColor kSelectedBackgroundColor = | 28 static const SkColor kSelectedBackgroundColor = |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 void AutocompletePopupContentsView::MakeCanvasTransparent( | 853 void AutocompletePopupContentsView::MakeCanvasTransparent( |
| 854 ChromeCanvas* canvas) { | 854 ChromeCanvas* canvas) { |
| 855 // Allow the window blur effect to show through the popup background. | 855 // Allow the window blur effect to show through the popup background. |
| 856 SkPaint paint; | 856 SkPaint paint; |
| 857 paint.setColor(SkColorSetARGB(kPopupTransparency, 255, 255, 255)); | 857 paint.setColor(SkColorSetARGB(kPopupTransparency, 255, 255, 255)); |
| 858 paint.setPorterDuffXfermode(SkPorterDuff::kDstIn_Mode); | 858 paint.setPorterDuffXfermode(SkPorterDuff::kDstIn_Mode); |
| 859 paint.setStyle(SkPaint::kFill_Style); | 859 paint.setStyle(SkPaint::kFill_Style); |
| 860 canvas->FillRectInt(0, 0, canvas->getDevice()->width(), | 860 canvas->FillRectInt(0, 0, canvas->getDevice()->width(), |
| 861 canvas->getDevice()->height(), paint); | 861 canvas->getDevice()->height(), paint); |
| 862 } | 862 } |
| OLD | NEW |