OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 Apple 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 { | 50 { |
51 return adoptRefWillBeNoop(new Scrollbar(scrollableArea, orientation, size, n
ullptr, theme)); | 51 return adoptRefWillBeNoop(new Scrollbar(scrollableArea, orientation, size, n
ullptr, theme)); |
52 } | 52 } |
53 | 53 |
54 Scrollbar::Scrollbar(ScrollableArea* scrollableArea, ScrollbarOrientation orient
ation, ScrollbarControlSize controlSize, HostWindow* hostWindow, ScrollbarTheme*
theme) | 54 Scrollbar::Scrollbar(ScrollableArea* scrollableArea, ScrollbarOrientation orient
ation, ScrollbarControlSize controlSize, HostWindow* hostWindow, ScrollbarTheme*
theme) |
55 : m_scrollableArea(scrollableArea) | 55 : m_scrollableArea(scrollableArea) |
56 , m_orientation(orientation) | 56 , m_orientation(orientation) |
57 , m_controlSize(controlSize) | 57 , m_controlSize(controlSize) |
58 , m_theme(theme ? *theme : ScrollbarTheme::theme()) | 58 , m_theme(theme ? *theme : ScrollbarTheme::theme()) |
59 , m_hostWindow(hostWindow) | 59 , m_hostWindow(hostWindow) |
| 60 , m_screenId(0) |
60 , m_visibleSize(0) | 61 , m_visibleSize(0) |
61 , m_totalSize(0) | 62 , m_totalSize(0) |
62 , m_currentPos(0) | 63 , m_currentPos(0) |
63 , m_dragOrigin(0) | 64 , m_dragOrigin(0) |
64 , m_hoveredPart(NoPart) | 65 , m_hoveredPart(NoPart) |
65 , m_pressedPart(NoPart) | 66 , m_pressedPart(NoPart) |
66 , m_pressedPos(0) | 67 , m_pressedPos(0) |
67 , m_scrollPos(0) | 68 , m_scrollPos(0) |
68 , m_draggingDocument(false) | 69 , m_draggingDocument(false) |
69 , m_documentDragPos(0) | 70 , m_documentDragPos(0) |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 invalidParts = AllParts; | 580 invalidParts = AllParts; |
580 if (invalidParts & ~ThumbPart) | 581 if (invalidParts & ~ThumbPart) |
581 m_trackNeedsRepaint = true; | 582 m_trackNeedsRepaint = true; |
582 if (invalidParts & ThumbPart) | 583 if (invalidParts & ThumbPart) |
583 m_thumbNeedsRepaint = true; | 584 m_thumbNeedsRepaint = true; |
584 if (m_scrollableArea) | 585 if (m_scrollableArea) |
585 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); | 586 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); |
586 } | 587 } |
587 | 588 |
588 } // namespace blink | 589 } // namespace blink |
OLD | NEW |