Home
last modified time | relevance | path

Searched refs:NativeTheme (Results 1 – 25 of 122) sorted by relevance

12345

/external/chromium_org/ui/native_theme/
Dcommon_theme.cc48 bool CommonThemeGetSystemColor(NativeTheme::ColorId color_id, SkColor* color) { in CommonThemeGetSystemColor()
51 case NativeTheme::kColorId_MenuBorderColor: in CommonThemeGetSystemColor()
54 case NativeTheme::kColorId_EnabledMenuButtonBorderColor: in CommonThemeGetSystemColor()
57 case NativeTheme::kColorId_FocusedMenuButtonBorderColor: in CommonThemeGetSystemColor()
60 case NativeTheme::kColorId_HoverMenuButtonBorderColor: in CommonThemeGetSystemColor()
63 case NativeTheme::kColorId_MenuSeparatorColor: in CommonThemeGetSystemColor()
66 case NativeTheme::kColorId_MenuBackgroundColor: in CommonThemeGetSystemColor()
69 case NativeTheme::kColorId_FocusedMenuItemBackgroundColor: in CommonThemeGetSystemColor()
72 case NativeTheme::kColorId_HoverMenuItemBackgroundColor: in CommonThemeGetSystemColor()
75 case NativeTheme::kColorId_EnabledMenuItemForegroundColor: in CommonThemeGetSystemColor()
[all …]
Dnative_theme_aurawin.cc15 bool IsScrollbarPart(NativeTheme::Part part) { in IsScrollbarPart()
17 case NativeTheme::kScrollbarDownArrow: in IsScrollbarPart()
18 case NativeTheme::kScrollbarLeftArrow: in IsScrollbarPart()
19 case NativeTheme::kScrollbarRightArrow: in IsScrollbarPart()
20 case NativeTheme::kScrollbarUpArrow: in IsScrollbarPart()
21 case NativeTheme::kScrollbarHorizontalThumb: in IsScrollbarPart()
22 case NativeTheme::kScrollbarVerticalThumb: in IsScrollbarPart()
23 case NativeTheme::kScrollbarHorizontalTrack: in IsScrollbarPart()
24 case NativeTheme::kScrollbarVerticalTrack: in IsScrollbarPart()
25 case NativeTheme::kScrollbarHorizontalGripper: in IsScrollbarPart()
[all …]
Dnative_theme.cc11 void NativeTheme::SetScrollbarColors(unsigned inactive_color, in SetScrollbarColors()
22 void NativeTheme::AddObserver(NativeThemeObserver* observer) { in AddObserver()
26 void NativeTheme::RemoveObserver(NativeThemeObserver* observer) { in RemoveObserver()
30 void NativeTheme::NotifyObservers() { in NotifyObservers()
35 NativeTheme::NativeTheme() in NativeTheme() function in ui::NativeTheme
41 NativeTheme::~NativeTheme() {} in ~NativeTheme()
Dnative_theme_mac_unittest.cc16 NativeTheme* native_theme = NativeTheme::instance(); in TEST()
18 for (int i = 0; i < NativeTheme::kColorId_NumColors; ++i) { in TEST()
23 native_theme->GetSystemColor(static_cast<NativeTheme::ColorId>(i))) in TEST()
31 NativeTheme* native_theme = NativeTheme::instance(); in TEST()
35 native_theme->GetSystemColor(NativeTheme::kColorId_WindowBackground); in TEST()
Dcommon_theme.h23 NativeTheme::ColorId color_id,
27 NativeTheme::Part part,
28 NativeTheme::State state,
29 const NativeTheme::ExtraParams& extra);
38 const NativeTheme::MenuSeparatorExtraParams& extra);
48 NativeTheme::State state,
/external/chromium_org/ui/views/controls/scrollbar/
Dnative_scroll_bar_views.cc44 ui::NativeTheme::ExtraParams GetNativeThemeParams() const;
45 ui::NativeTheme::Part GetNativeThemePart() const;
46 ui::NativeTheme::State GetNativeThemeState() const;
66 ui::NativeTheme::ExtraParams GetNativeThemeParams() const;
67 ui::NativeTheme::Part GetNativeThemePart() const;
68 ui::NativeTheme::State GetNativeThemeState() const;
99 ui::NativeTheme::ExtraParams
101 ui::NativeTheme::ExtraParams params; in GetNativeThemeParams()
115 ui::NativeTheme::Part
119 return ui::NativeTheme::kScrollbarUpArrow; in GetNativeThemePart()
[all …]
Dnative_scroll_bar_wrapper.h11 class NativeTheme; variable
39 static int GetVerticalScrollBarWidth(const ui::NativeTheme* theme);
40 static int GetHorizontalScrollBarHeight(const ui::NativeTheme* theme);
/external/chromium_org/mojo/services/html_viewer/
Dwebthemeengine_impl.cc19 static ui::NativeTheme::Part NativeThemePart( in NativeThemePart()
23 return ui::NativeTheme::kScrollbarDownArrow; in NativeThemePart()
25 return ui::NativeTheme::kScrollbarLeftArrow; in NativeThemePart()
27 return ui::NativeTheme::kScrollbarRightArrow; in NativeThemePart()
29 return ui::NativeTheme::kScrollbarUpArrow; in NativeThemePart()
31 return ui::NativeTheme::kScrollbarHorizontalThumb; in NativeThemePart()
33 return ui::NativeTheme::kScrollbarVerticalThumb; in NativeThemePart()
35 return ui::NativeTheme::kScrollbarHorizontalTrack; in NativeThemePart()
37 return ui::NativeTheme::kScrollbarVerticalTrack; in NativeThemePart()
39 return ui::NativeTheme::kScrollbarCorner; in NativeThemePart()
[all …]
/external/chromium_org/content/child/
Dwebthemeengine_impl_default.cc19 static ui::NativeTheme::Part NativeThemePart( in NativeThemePart()
23 return ui::NativeTheme::kScrollbarDownArrow; in NativeThemePart()
25 return ui::NativeTheme::kScrollbarLeftArrow; in NativeThemePart()
27 return ui::NativeTheme::kScrollbarRightArrow; in NativeThemePart()
29 return ui::NativeTheme::kScrollbarUpArrow; in NativeThemePart()
31 return ui::NativeTheme::kScrollbarHorizontalThumb; in NativeThemePart()
33 return ui::NativeTheme::kScrollbarVerticalThumb; in NativeThemePart()
35 return ui::NativeTheme::kScrollbarHorizontalTrack; in NativeThemePart()
37 return ui::NativeTheme::kScrollbarVerticalTrack; in NativeThemePart()
39 return ui::NativeTheme::kScrollbarCorner; in NativeThemePart()
[all …]
Dwebfallbackthemeengine_impl.cc19 static ui::NativeTheme::Part NativeThemePart( in NativeThemePart()
23 return ui::NativeTheme::kScrollbarDownArrow; in NativeThemePart()
25 return ui::NativeTheme::kScrollbarLeftArrow; in NativeThemePart()
27 return ui::NativeTheme::kScrollbarRightArrow; in NativeThemePart()
29 return ui::NativeTheme::kScrollbarUpArrow; in NativeThemePart()
31 return ui::NativeTheme::kScrollbarHorizontalThumb; in NativeThemePart()
33 return ui::NativeTheme::kScrollbarVerticalThumb; in NativeThemePart()
35 return ui::NativeTheme::kScrollbarHorizontalTrack; in NativeThemePart()
37 return ui::NativeTheme::kScrollbarVerticalTrack; in NativeThemePart()
39 return ui::NativeTheme::kScrollbarCorner; in NativeThemePart()
[all …]
Dwebthemeengine_impl_android.cc20 static ui::NativeTheme::Part NativeThemePart( in NativeThemePart()
24 return ui::NativeTheme::kScrollbarDownArrow; in NativeThemePart()
26 return ui::NativeTheme::kScrollbarLeftArrow; in NativeThemePart()
28 return ui::NativeTheme::kScrollbarRightArrow; in NativeThemePart()
30 return ui::NativeTheme::kScrollbarUpArrow; in NativeThemePart()
38 return static_cast<ui::NativeTheme::Part>(0); in NativeThemePart()
40 return ui::NativeTheme::kCheckbox; in NativeThemePart()
42 return ui::NativeTheme::kRadio; in NativeThemePart()
44 return ui::NativeTheme::kPushButton; in NativeThemePart()
46 return ui::NativeTheme::kTextField; in NativeThemePart()
[all …]
/external/chromium_org/ui/views/controls/menu/
Dmenu_config_win.cc19 using ui::NativeTheme;
24 void MenuConfig::Init(const NativeTheme* theme) { in Init()
40 NativeTheme::ExtraParams extra; in Init()
44 NativeTheme::kMenuCheck, NativeTheme::kNormal, extra); in Init()
55 NativeTheme::kMenuCheck, NativeTheme::kNormal, extra); in Init()
62 NativeTheme::kMenuPopupArrow, NativeTheme::kNormal, extra); in Init()
82 const MenuConfig& MenuConfig::instance(const ui::NativeTheme* theme) { in instance()
Dmenu_config.h13 class NativeTheme; variable
21 explicit MenuConfig(const ui::NativeTheme* theme);
24 static const MenuConfig& instance(const ui::NativeTheme* theme);
120 const ui::NativeTheme* native_theme;
131 void Init(const ui::NativeTheme* theme);
134 void InitAura(const ui::NativeTheme* theme);
Dmenu_separator_win.cc36 ui::NativeTheme::ExtraParams extra; in OnPaint()
38 canvas->sk_canvas(), ui::NativeTheme::kMenuPopupGutter, in OnPaint()
39 ui::NativeTheme::kNormal, gutter_bounds, extra); in OnPaint()
43 ui::NativeTheme::ExtraParams extra; in OnPaint()
56 canvas->sk_canvas(), ui::NativeTheme::kMenuPopupSeparator, in OnPaint()
57 ui::NativeTheme::kNormal, separator_bounds, extra); in OnPaint()
Dmenu_config_aura.cc26 void MenuConfig::Init(const ui::NativeTheme* theme) { in Init()
32 void MenuConfig::InitAura(const ui::NativeTheme* theme) { in InitAura()
53 const MenuConfig& MenuConfig::instance(const ui::NativeTheme* theme) { in instance()
57 theme : ui::NativeTheme::instance()); in instance()
Dmenu_config_mac.cc13 void MenuConfig::Init(const ui::NativeTheme* theme) { in Init()
18 const MenuConfig& MenuConfig::instance(const ui::NativeTheme* theme) { in instance()
20 MenuConfig, mac_instance, (theme ? theme : ui::NativeTheme::instance())); in instance()
/external/chromium_org/ui/views/
Dnative_theme_delegate.h26 virtual ui::NativeTheme::Part GetThemePart() const = 0;
32 virtual ui::NativeTheme::State GetThemeState(
33 ui::NativeTheme::ExtraParams* params) const = 0;
40 virtual ui::NativeTheme::State GetBackgroundThemeState(
41 ui::NativeTheme::ExtraParams* params) const = 0;
46 virtual ui::NativeTheme::State GetForegroundThemeState(
47 ui::NativeTheme::ExtraParams* params) const = 0;
/external/chromium_org/ui/views/controls/button/
Dlabel_button.cc368 void LabelButton::GetExtraParams(ui::NativeTheme::ExtraParams* params) const { in GetExtraParams()
379 const ui::NativeTheme* theme = GetNativeTheme(); in ResetColorsFromNativeTheme()
381 theme->GetSystemColor(ui::NativeTheme::kColorId_ButtonEnabledColor), in ResetColorsFromNativeTheme()
382 theme->GetSystemColor(ui::NativeTheme::kColorId_ButtonHoverColor), in ResetColorsFromNativeTheme()
383 theme->GetSystemColor(ui::NativeTheme::kColorId_ButtonHoverColor), in ResetColorsFromNativeTheme()
384 theme->GetSystemColor(ui::NativeTheme::kColorId_ButtonDisabledColor), in ResetColorsFromNativeTheme()
406 ui::NativeTheme::kColorId_ButtonBackgroundColor)); in ResetColorsFromNativeTheme()
469 void LabelButton::OnNativeThemeChanged(const ui::NativeTheme* theme) { in OnNativeThemeChanged()
476 ui::NativeTheme::Part LabelButton::GetThemePart() const { in GetThemePart()
477 return ui::NativeTheme::kPushButton; in GetThemePart()
[all …]
Dbutton.cc16 Button::ButtonState Button::GetButtonStateFrom(ui::NativeTheme::State state) { in GetButtonStateFrom()
18 case ui::NativeTheme::kDisabled: return Button::STATE_DISABLED; in GetButtonStateFrom()
19 case ui::NativeTheme::kHovered: return Button::STATE_HOVERED; in GetButtonStateFrom()
20 case ui::NativeTheme::kNormal: return Button::STATE_NORMAL; in GetButtonStateFrom()
21 case ui::NativeTheme::kPressed: return Button::STATE_PRESSED; in GetButtonStateFrom()
22 case ui::NativeTheme::kNumStates: NOTREACHED(); in GetButtonStateFrom()
Dlabel_button.h107 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE;
110 virtual void GetExtraParams(ui::NativeTheme::ExtraParams* params) const;
143 virtual ui::NativeTheme::Part GetThemePart() const OVERRIDE;
144 virtual ui::NativeTheme::State GetThemeState(
145 ui::NativeTheme::ExtraParams* params) const OVERRIDE;
147 virtual ui::NativeTheme::State GetBackgroundThemeState(
148 ui::NativeTheme::ExtraParams* params) const OVERRIDE;
149 virtual ui::NativeTheme::State GetForegroundThemeState(
150 ui::NativeTheme::ExtraParams* params) const OVERRIDE;
Dblue_button.cc30 GetSystemColor(ui::NativeTheme::kColorId_BlueButtonEnabledColor)); in ResetColorsFromNativeTheme()
32 GetSystemColor(ui::NativeTheme::kColorId_BlueButtonHoverColor)); in ResetColorsFromNativeTheme()
34 GetSystemColor(ui::NativeTheme::kColorId_BlueButtonPressedColor)); in ResetColorsFromNativeTheme()
36 GetSystemColor(ui::NativeTheme::kColorId_BlueButtonDisabledColor)); in ResetColorsFromNativeTheme()
44 ui::NativeTheme::kColorId_BlueButtonShadowColor)))); in ResetColorsFromNativeTheme()
/external/chromium_org/ash/ime/
Dcandidate_view.cc47 const ui::NativeTheme& theme) { in CreateShortcutLabel()
63 ui::NativeTheme::kColorId_LabelEnabledColor)); in CreateShortcutLabel()
65 ui::NativeTheme::kColorId_LabelDisabledColor)); in CreateShortcutLabel()
82 theme.GetSystemColor(ui::NativeTheme::kColorId_WindowBackground), in CreateShortcutLabel()
119 const ui::NativeTheme& theme) { in CreateAnnotationLabel()
127 ui::NativeTheme::kColorId_LabelDisabledColor)); in CreateAnnotationLabel()
149 const ui::NativeTheme& theme = *GetNativeTheme(); in CandidateView()
162 ui::NativeTheme::kColorId_FocusedBorderColor))); in CandidateView()
200 ui::NativeTheme* theme = GetNativeTheme(); in SetHighlighted()
203 ui::NativeTheme::kColorId_TextfieldSelectionBackgroundFocused))); in SetHighlighted()
[all …]
/external/chromium_org/chrome/browser/ui/views/omnibox/
Domnibox_result_view.cc36 using ui::NativeTheme;
48 ui::NativeTheme::ColorId id;
52 { NativeTheme::kColorId_ResultsTableNormalBackground,
54 { NativeTheme::kColorId_ResultsTableHoveredBackground,
56 { NativeTheme::kColorId_ResultsTableSelectedBackground,
58 { NativeTheme::kColorId_ResultsTableNormalText,
60 { NativeTheme::kColorId_ResultsTableHoveredText,
62 { NativeTheme::kColorId_ResultsTableSelectedText,
64 { NativeTheme::kColorId_ResultsTableNormalDimmedText,
66 { NativeTheme::kColorId_ResultsTableHoveredDimmedText,
[all …]
/external/chromium_org/chrome/browser/ui/libgtk2ui/
Dgtk2_util.cc133 GtkStateType GetGtkState(ui::NativeTheme::State state) { in GetGtkState()
135 case ui::NativeTheme::kDisabled: return GTK_STATE_INSENSITIVE; in GetGtkState()
136 case ui::NativeTheme::kHovered: return GTK_STATE_PRELIGHT; in GetGtkState()
137 case ui::NativeTheme::kNormal: return GTK_STATE_NORMAL; in GetGtkState()
138 case ui::NativeTheme::kPressed: return GTK_STATE_ACTIVE; in GetGtkState()
139 case ui::NativeTheme::kNumStates: NOTREACHED(); in GetGtkState()
Dgtk2_border.h41 virtual void OnNativeThemeUpdated(ui::NativeTheme* observed_theme) OVERRIDE;
44 void PaintState(const ui::NativeTheme::State state,
45 const ui::NativeTheme::ExtraParams& extra,
61 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;

12345