| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 ScrollableArea* GetScrollableArea() const { return scrollable_area_; } | 122 ScrollableArea* GetScrollableArea() const { return scrollable_area_; } |
| 123 | 123 |
| 124 int PressedPos() const { return pressed_pos_; } | 124 int PressedPos() const { return pressed_pos_; } |
| 125 | 125 |
| 126 virtual void SetHoveredPart(ScrollbarPart); | 126 virtual void SetHoveredPart(ScrollbarPart); |
| 127 virtual void SetPressedPart(ScrollbarPart); | 127 virtual void SetPressedPart(ScrollbarPart); |
| 128 | 128 |
| 129 void SetProportion(int visible_size, int total_size); | 129 void SetProportion(int visible_size, int total_size); |
| 130 void SetPressedPos(int p) { pressed_pos_ = p; } | 130 void SetPressedPos(int p) { pressed_pos_ = p; } |
| 131 | 131 |
| 132 void Paint(GraphicsContext&, const CullRect&) const final; | 132 void Paint(GraphicsContext&, const CullRect&) const; |
| 133 | 133 |
| 134 bool IsOverlayScrollbar() const override; | 134 bool IsOverlayScrollbar() const override; |
| 135 bool ShouldParticipateInHitTesting(); | 135 bool ShouldParticipateInHitTesting(); |
| 136 | 136 |
| 137 bool IsWindowActive() const; | 137 bool IsWindowActive() const; |
| 138 | 138 |
| 139 // Return if the gesture event was handled. |shouldUpdateCapture| | 139 // Return if the gesture event was handled. |shouldUpdateCapture| |
| 140 // will be set to true if the handler should update the capture | 140 // will be set to true if the handler should update the capture |
| 141 // state for this scrollbar. | 141 // state for this scrollbar. |
| 142 bool GestureEvent(const WebGestureEvent&, bool* should_update_capture); | 142 bool GestureEvent(const WebGestureEvent&, bool* should_update_capture); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 DEFINE_TYPE_CASTS(Scrollbar, | 263 DEFINE_TYPE_CASTS(Scrollbar, |
| 264 FrameViewBase, | 264 FrameViewBase, |
| 265 frameViewBase, | 265 frameViewBase, |
| 266 frameViewBase->IsScrollbar(), | 266 frameViewBase->IsScrollbar(), |
| 267 frameViewBase.IsScrollbar()); | 267 frameViewBase.IsScrollbar()); |
| 268 | 268 |
| 269 } // namespace blink | 269 } // namespace blink |
| 270 | 270 |
| 271 #endif // Scrollbar_h | 271 #endif // Scrollbar_h |
| OLD | NEW |