| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the WebKit project. | 2 * This file is part of the WebKit project. |
| 3 * | 3 * |
| 4 * Copyright (C) 2006 Apple Computer, Inc. | 4 * Copyright (C) 2006 Apple Computer, Inc. |
| 5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com | 5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com |
| 6 * Copyright (C) 2007 Holger Hans Peter Freyther | 6 * Copyright (C) 2007 Holger Hans Peter Freyther |
| 7 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 7 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 8 * Copyright (C) 2008, 2009 Google, Inc. | 8 * Copyright (C) 2008, 2009 Google, Inc. |
| 9 * All rights reserved. | 9 * All rights reserved. |
| 10 * Copyright (C) 2009 Kenneth Rohde Christiansen | 10 * Copyright (C) 2009 Kenneth Rohde Christiansen |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // codepath. We never go down both. And in both cases, they layout the | 104 // codepath. We never go down both. And in both cases, they layout the |
| 105 // entire menulist. | 105 // entire menulist. |
| 106 void AdjustMenuListStyle(ComputedStyle&, Element*) const override; | 106 void AdjustMenuListStyle(ComputedStyle&, Element*) const override; |
| 107 void AdjustMenuListButtonStyle(ComputedStyle&, Element*) const override; | 107 void AdjustMenuListButtonStyle(ComputedStyle&, Element*) const override; |
| 108 | 108 |
| 109 double AnimationRepeatIntervalForProgressBar() const override; | 109 double AnimationRepeatIntervalForProgressBar() const override; |
| 110 double AnimationDurationForProgressBar() const override; | 110 double AnimationDurationForProgressBar() const override; |
| 111 | 111 |
| 112 // These methods define the padding for the MenuList's inner block. | 112 // These methods define the padding for the MenuList's inner block. |
| 113 int PopupInternalPaddingStart(const ComputedStyle&) const override; | 113 int PopupInternalPaddingStart(const ComputedStyle&) const override; |
| 114 int PopupInternalPaddingEnd(const HostWindow*, | 114 int PopupInternalPaddingEnd(const PlatformChromeClient*, |
| 115 const ComputedStyle&) const override; | 115 const ComputedStyle&) const override; |
| 116 int PopupInternalPaddingTop(const ComputedStyle&) const override; | 116 int PopupInternalPaddingTop(const ComputedStyle&) const override; |
| 117 int PopupInternalPaddingBottom(const ComputedStyle&) const override; | 117 int PopupInternalPaddingBottom(const ComputedStyle&) const override; |
| 118 // This returns a value based on scrollbar thickness. It's not 0 even in | 118 // This returns a value based on scrollbar thickness. It's not 0 even in |
| 119 // overlay scrollbar mode. On Android, this doesn't match to scrollbar | 119 // overlay scrollbar mode. On Android, this doesn't match to scrollbar |
| 120 // thickness, which is 3px or 4px, and we use the value from the default Aura | 120 // thickness, which is 3px or 4px, and we use the value from the default Aura |
| 121 // theme. | 121 // theme. |
| 122 int MenuListArrowWidthInDIP() const; | 122 int MenuListArrowWidthInDIP() const; |
| 123 float ClampedMenuListArrowPaddingSize(const HostWindow*, | 123 float ClampedMenuListArrowPaddingSize(const PlatformChromeClient*, |
| 124 const ComputedStyle&) const; | 124 const ComputedStyle&) const; |
| 125 | 125 |
| 126 // Provide a way to pass the default font size from the Settings object | 126 // Provide a way to pass the default font size from the Settings object |
| 127 // to the layout theme. FIXME: http://b/1129186 A cleaner way would be | 127 // to the layout theme. FIXME: http://b/1129186 A cleaner way would be |
| 128 // to remove the default font size from this object and have callers | 128 // to remove the default font size from this object and have callers |
| 129 // that need the value to get it directly from the appropriate Settings | 129 // that need the value to get it directly from the appropriate Settings |
| 130 // object. | 130 // object. |
| 131 static void SetDefaultFontSize(int); | 131 static void SetDefaultFontSize(int); |
| 132 | 132 |
| 133 static void SetSelectionColors(unsigned active_background_color, | 133 static void SetSelectionColors(unsigned active_background_color, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 161 | 161 |
| 162 ThemePainterDefault painter_; | 162 ThemePainterDefault painter_; |
| 163 // Cached values for crbug.com/673754. | 163 // Cached values for crbug.com/673754. |
| 164 mutable float cached_menu_list_arrow_zoom_level_ = 0; | 164 mutable float cached_menu_list_arrow_zoom_level_ = 0; |
| 165 mutable float cached_menu_list_arrow_padding_size_ = 0; | 165 mutable float cached_menu_list_arrow_padding_size_ = 0; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace blink | 168 } // namespace blink |
| 169 | 169 |
| 170 #endif // LayoutThemeDefault_h | 170 #endif // LayoutThemeDefault_h |
| OLD | NEW |