OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 /* [in] */ WPARAM wParam, | 109 /* [in] */ WPARAM wParam, |
110 /* [in] */ LPARAM lParam); | 110 /* [in] */ LPARAM lParam); |
111 | 111 |
112 virtual HRESULT STDMETHODCALLTYPE scroll( | 112 virtual HRESULT STDMETHODCALLTYPE scroll( |
113 /* [in] */ WebScrollDirection direction, | 113 /* [in] */ WebScrollDirection direction, |
114 /* [in] */ WebScrollGranularity granularity, | 114 /* [in] */ WebScrollGranularity granularity, |
115 /* [in] */ float multiplier); | 115 /* [in] */ float multiplier); |
116 | 116 |
117 protected: | 117 protected: |
118 // ScrollbarClient | 118 // ScrollbarClient |
| 119 virtual int scrollSize(ScrollbarOrientation orientation) const; |
| 120 virtual void setScrollOffsetFromAnimation(const IntPoint&); |
119 virtual void valueChanged(Scrollbar*); | 121 virtual void valueChanged(Scrollbar*); |
120 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&); | 122 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&); |
121 | 123 |
122 // FIXME: We should provide a way to set this value. | 124 // FIXME: We should provide a way to set this value. |
123 virtual bool isActive() const { return true; } | 125 virtual bool isActive() const { return true; } |
124 | 126 |
125 virtual bool scrollbarCornerPresent() const { return false; } | 127 virtual bool scrollbarCornerPresent() const { return false; } |
126 | 128 |
127 ULONG m_refCount; | 129 ULONG m_refCount; |
128 HWND m_containingWindow; | 130 HWND m_containingWindow; |
129 RefPtr<WebCore::Scrollbar> m_scrollBar; | 131 RefPtr<WebCore::Scrollbar> m_scrollBar; |
130 COMPtr<IWebScrollBarDelegatePrivate> m_delegate; | 132 COMPtr<IWebScrollBarDelegatePrivate> m_delegate; |
131 }; | 133 }; |
132 | 134 |
133 #endif | 135 #endif |
OLD | NEW |