Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006 Apple Computer, 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class GraphicsContext; | 39 class GraphicsContext; |
| 40 class HostWindow; | 40 class HostWindow; |
| 41 class IntRect; | 41 class IntRect; |
| 42 class PlatformMouseEvent; | 42 class PlatformMouseEvent; |
| 43 class ScrollableArea; | 43 class ScrollableArea; |
| 44 class ScrollbarTheme; | 44 class ScrollbarTheme; |
| 45 class WebGestureEvent; | 45 class WebGestureEvent; |
| 46 | 46 |
| 47 enum ScrollbarPressedPart { | |
|
bokan
2017/01/16 21:25:33
This should reflect the fact that it's used only f
| |
| 48 IgnorePart = 0, | |
| 49 VerticalScrollbarButton, | |
| 50 HorizontalScrollbarButton, | |
| 51 VerticalScrollbarThumb, | |
|
bokan
2017/01/16 21:25:33
Nit: I think it be better to group all the horizon
| |
| 52 HorizontalScrollbarThumb, | |
| 53 VerticalScrollbarTrack, | |
| 54 HorizontalScrollbarTrack, | |
| 55 ScrollbarPressedPartMax | |
| 56 }; | |
| 57 | |
| 47 class PLATFORM_EXPORT Scrollbar : public Widget, | 58 class PLATFORM_EXPORT Scrollbar : public Widget, |
| 48 public ScrollbarThemeClient, | 59 public ScrollbarThemeClient, |
| 49 public DisplayItemClient { | 60 public DisplayItemClient { |
| 50 public: | 61 public: |
| 51 static Scrollbar* create(ScrollableArea* scrollableArea, | 62 static Scrollbar* create(ScrollableArea* scrollableArea, |
| 52 ScrollbarOrientation orientation, | 63 ScrollbarOrientation orientation, |
| 53 ScrollbarControlSize size, | 64 ScrollbarControlSize size, |
| 54 HostWindow* hostWindow) { | 65 HostWindow* hostWindow) { |
| 55 return new Scrollbar(scrollableArea, orientation, size, hostWindow); | 66 return new Scrollbar(scrollableArea, orientation, size, hostWindow); |
| 56 } | 67 } |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 259 | 270 |
| 260 DEFINE_TYPE_CASTS(Scrollbar, | 271 DEFINE_TYPE_CASTS(Scrollbar, |
| 261 Widget, | 272 Widget, |
| 262 widget, | 273 widget, |
| 263 widget->isScrollbar(), | 274 widget->isScrollbar(), |
| 264 widget.isScrollbar()); | 275 widget.isScrollbar()); |
| 265 | 276 |
| 266 } // namespace blink | 277 } // namespace blink |
| 267 | 278 |
| 268 #endif // Scrollbar_h | 279 #endif // Scrollbar_h |
| OLD | NEW |