| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void startAutoscrollForSelection(LayoutObject*); | 65 void startAutoscrollForSelection(LayoutObject*); |
| 66 void stopAutoscroll(); | 66 void stopAutoscroll(); |
| 67 void stopAutoscrollIfNeeded(LayoutObject*); | 67 void stopAutoscrollIfNeeded(LayoutObject*); |
| 68 void updateAutoscrollLayoutObject(); | 68 void updateAutoscrollLayoutObject(); |
| 69 void updateDragAndDrop(Node* targetNode, | 69 void updateDragAndDrop(Node* targetNode, |
| 70 const IntPoint& eventPosition, | 70 const IntPoint& eventPosition, |
| 71 double eventTime); | 71 double eventTime); |
| 72 void handleMouseReleaseForMiddleClickAutoscroll(LocalFrame*, | 72 void handleMouseReleaseForMiddleClickAutoscroll(LocalFrame*, |
| 73 const PlatformMouseEvent&); | 73 const PlatformMouseEvent&); |
| 74 void startMiddleClickAutoscroll(LayoutBox*, const IntPoint&); | 74 void startMiddleClickAutoscroll(LayoutBox*, const IntPoint&); |
| 75 bool setMiddleClickAutoscrollLayoutObject(LayoutBox*); |
| 76 void setMiddleClickAutoscrolled(bool scrolled) { |
| 77 m_middleClickAutoscrolled = scrolled; |
| 78 }; |
| 75 | 79 |
| 76 private: | 80 private: |
| 77 explicit AutoscrollController(Page&); | 81 explicit AutoscrollController(Page&); |
| 78 | 82 |
| 79 void startAutoscroll(); | 83 void startAutoscroll(); |
| 80 | 84 |
| 81 void updateMiddleClickAutoscrollState(FrameView*, | 85 void updateMiddleClickAutoscrollState(FrameView*, |
| 82 const IntPoint& lastKnownMousePosition); | 86 const IntPoint& lastKnownMousePosition); |
| 83 | 87 |
| 84 Member<Page> m_page; | 88 Member<Page> m_page; |
| 85 LayoutBox* m_autoscrollLayoutObject; | 89 LayoutBox* m_autoscrollLayoutObject; |
| 86 LayoutBox* m_pressedLayoutObject; | 90 LayoutBox* m_pressedLayoutObject; |
| 87 AutoscrollType m_autoscrollType; | 91 AutoscrollType m_autoscrollType; |
| 88 IntPoint m_dragAndDropAutoscrollReferencePosition; | 92 IntPoint m_dragAndDropAutoscrollReferencePosition; |
| 89 double m_dragAndDropAutoscrollStartTime; | 93 double m_dragAndDropAutoscrollStartTime; |
| 90 IntPoint m_middleClickAutoscrollStartPos; | 94 IntPoint m_middleClickAutoscrollStartPos; |
| 95 bool m_middleClickAutoscrolled; |
| 91 }; | 96 }; |
| 92 | 97 |
| 93 } // namespace blink | 98 } // namespace blink |
| 94 | 99 |
| 95 #endif // AutoscrollController_h | 100 #endif // AutoscrollController_h |
| OLD | NEW |