OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // For WinDDK ATL compatibility, these ATL headers must come first. | 5 // For WinDDK ATL compatibility, these ATL headers must come first. |
6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <atlbase.h> // NOLINT | 8 #include <atlbase.h> // NOLINT |
9 #include <atlwin.h> // NOLINT | 9 #include <atlwin.h> // NOLINT |
10 #endif | 10 #endif |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "ui/base/theme_provider.h" | 31 #include "ui/base/theme_provider.h" |
32 #include "ui/gfx/canvas.h" | 32 #include "ui/gfx/canvas.h" |
33 #include "ui/gfx/color_palette.h" | 33 #include "ui/gfx/color_palette.h" |
34 #include "ui/gfx/color_utils.h" | 34 #include "ui/gfx/color_utils.h" |
35 #include "ui/gfx/image/image.h" | 35 #include "ui/gfx/image/image.h" |
36 #include "ui/gfx/paint_vector_icon.h" | 36 #include "ui/gfx/paint_vector_icon.h" |
37 #include "ui/gfx/range/range.h" | 37 #include "ui/gfx/range/range.h" |
38 #include "ui/gfx/render_text.h" | 38 #include "ui/gfx/render_text.h" |
39 #include "ui/gfx/text_utils.h" | 39 #include "ui/gfx/text_utils.h" |
40 #include "ui/gfx/vector_icons_public.h" | 40 #include "ui/gfx/vector_icons_public.h" |
41 #include "ui/native_theme/native_theme.h" | |
42 | 41 |
43 using ui::NativeTheme; | 42 using ui::NativeTheme; |
44 | 43 |
45 namespace { | 44 namespace { |
46 | 45 |
47 // A mapping from OmniboxResultView's ResultViewState/ColorKind types to | 46 // A mapping from OmniboxResultView's ResultViewState/ColorKind types to |
48 // NativeTheme colors. | 47 // NativeTheme colors. |
49 struct TranslationTable { | 48 struct TranslationTable { |
50 ui::NativeTheme::ColorId id; | 49 ui::NativeTheme::ColorId id; |
51 OmniboxResultView::ResultViewState state; | 50 OmniboxResultView::ResultViewState state; |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 | 823 |
825 int OmniboxResultView::StartMargin() const { | 824 int OmniboxResultView::StartMargin() const { |
826 return ui::MaterialDesignController::IsModeMaterial() ? | 825 return ui::MaterialDesignController::IsModeMaterial() ? |
827 model_->start_margin() : 0; | 826 model_->start_margin() : 0; |
828 } | 827 } |
829 | 828 |
830 int OmniboxResultView::EndMargin() const { | 829 int OmniboxResultView::EndMargin() const { |
831 return ui::MaterialDesignController::IsModeMaterial() ? | 830 return ui::MaterialDesignController::IsModeMaterial() ? |
832 model_->end_margin() : 0; | 831 model_->end_margin() : 0; |
833 } | 832 } |
OLD | NEW |