OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 return false; | 62 return false; |
63 } | 63 } |
64 | 64 |
65 ScrollbarPart ScrollbarThemeOverlay::InvalidateOnThumbPositionChange( | 65 ScrollbarPart ScrollbarThemeOverlay::InvalidateOnThumbPositionChange( |
66 const ScrollbarThemeClient&, | 66 const ScrollbarThemeClient&, |
67 float old_position, | 67 float old_position, |
68 float new_position) const { | 68 float new_position) const { |
69 return kNoPart; | 69 return kNoPart; |
70 } | 70 } |
71 | 71 |
72 ScrollbarPart ScrollbarThemeOverlay::InvalidateOnEnabledChange() const { | |
73 return kNoPart; | |
74 } | |
75 | |
76 int ScrollbarThemeOverlay::ScrollbarThickness( | 72 int ScrollbarThemeOverlay::ScrollbarThickness( |
77 ScrollbarControlSize control_size) { | 73 ScrollbarControlSize control_size) { |
78 return thumb_thickness_ + scrollbar_margin_; | 74 return thumb_thickness_ + scrollbar_margin_; |
79 } | 75 } |
80 | 76 |
81 int ScrollbarThemeOverlay::ScrollbarMargin() const { | 77 int ScrollbarThemeOverlay::ScrollbarMargin() const { |
82 return scrollbar_margin_; | 78 return scrollbar_margin_; |
83 } | 79 } |
84 | 80 |
85 bool ScrollbarThemeOverlay::UsesOverlayScrollbars() const { | 81 bool ScrollbarThemeOverlay::UsesOverlayScrollbars() const { |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 .height; | 286 .height; |
291 } | 287 } |
292 | 288 |
293 return Platform::Current() | 289 return Platform::Current() |
294 ->ThemeEngine() | 290 ->ThemeEngine() |
295 ->GetSize(WebThemeEngine::kPartScrollbarHorizontalThumb) | 291 ->GetSize(WebThemeEngine::kPartScrollbarHorizontalThumb) |
296 .width; | 292 .width; |
297 } | 293 } |
298 | 294 |
299 } // namespace blink | 295 } // namespace blink |
OLD | NEW |