| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 bool scrollToRevealSelection(); | 84 bool scrollToRevealSelection(); |
| 85 | 85 |
| 86 void incrementWheelDelta(int delta); | 86 void incrementWheelDelta(int delta); |
| 87 void reduceWheelDelta(int delta); | 87 void reduceWheelDelta(int delta); |
| 88 int wheelDelta() const { return m_wheelDelta; } | 88 int wheelDelta() const { return m_wheelDelta; } |
| 89 | 89 |
| 90 bool scrollbarCapturingMouse() const { return m_scrollbarCapturingMouse; } | 90 bool scrollbarCapturingMouse() const { return m_scrollbarCapturingMouse; } |
| 91 void setScrollbarCapturingMouse(bool b) { m_scrollbarCapturingMouse = b; } | 91 void setScrollbarCapturingMouse(bool b) { m_scrollbarCapturingMouse = b; } |
| 92 | 92 |
| 93 // ScrollBarClient | 93 // ScrollBarClient |
| 94 virtual int scrollSize(ScrollbarOrientation orientation) const; |
| 95 virtual void setScrollOffsetFromAnimation(const IntPoint&); |
| 94 virtual void valueChanged(Scrollbar*); | 96 virtual void valueChanged(Scrollbar*); |
| 95 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&); | 97 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&); |
| 96 virtual bool isActive() const { return true; } | 98 virtual bool isActive() const { return true; } |
| 97 virtual bool scrollbarCornerPresent() const { return false; } | 99 virtual bool scrollbarCornerPresent() const { return false; } |
| 98 | 100 |
| 99 void calculatePositionAndSize(const IntRect&, FrameView*); | 101 void calculatePositionAndSize(const IntRect&, FrameView*); |
| 100 void invalidateItem(int index); | 102 void invalidateItem(int index); |
| 101 | 103 |
| 102 static LRESULT CALLBACK PopupMenuWndProc(HWND, UINT, WPARAM, LPARAM); | 104 static LRESULT CALLBACK PopupMenuWndProc(HWND, UINT, WPARAM, LPARAM); |
| 103 LRESULT wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); | 105 LRESULT wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 114 int m_scrollOffset; | 116 int m_scrollOffset; |
| 115 int m_wheelDelta; | 117 int m_wheelDelta; |
| 116 int m_focusedIndex; | 118 int m_focusedIndex; |
| 117 bool m_scrollbarCapturingMouse; | 119 bool m_scrollbarCapturingMouse; |
| 118 bool m_showPopup; | 120 bool m_showPopup; |
| 119 }; | 121 }; |
| 120 | 122 |
| 121 } | 123 } |
| 122 | 124 |
| 123 #endif // PopupMenuWin_h | 125 #endif // PopupMenuWin_h |
| OLD | NEW |