Changeset 19698 in webkit
- Timestamp:
- Feb 18, 2007 4:26:32 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r19697 r19698 1 2007-02-18 Adam Roben <aroben@apple.com> 2 3 Reviewed by Hyatt. 4 5 A little preparation for <rdar://problem/5006872>. 6 7 * platform/PopupMenu.h: 8 1 9 2007-02-18 Alexey Proskuryakov <ap@webkit.org> 2 10 -
trunk/WebCore/platform/PopupMenu.h
r19338 r19698 36 36 #endif 37 37 #elif PLATFORM(WIN) 38 #include "ScrollBar.h" 39 #include <wtf/RefPtr.h> 38 40 typedef struct HWND__* HWND; 39 41 typedef struct HDC__* HDC; … … 48 50 49 51 class FrameView; 52 class PlatformScrollbar; 50 53 51 class PopupMenu : public Shared<PopupMenu> { 54 class PopupMenu : public Shared<PopupMenu> 55 #if PLATFORM(WIN) 56 , private ScrollbarClient 57 #endif 58 { 52 59 public: 53 60 static PassRefPtr<PopupMenu> create(PopupMenuClient* client) { return new PopupMenu(client); } … … 64 71 65 72 #if PLATFORM(WIN) 73 PlatformScrollbar* scrollBar() const { return m_scrollBar.get(); } 74 66 75 bool up(unsigned lines = 1); 67 76 bool down(unsigned lines = 1); … … 71 80 IntRect clientRect() const; 72 81 73 int listIndexAtPoint(const IntPoint& point) { return (point.y() + m_scrollOffset) / m_itemHeight; } 82 int visibleItems() const; 83 84 int listIndexAtPoint(const IntPoint&) const; 74 85 75 86 bool setFocusedIndex(int index, bool hotTracking = false, bool fireOnChange = false); … … 88 99 int scrollOffset() const { return m_scrollOffset; } 89 100 90 bool scrollTo(int);91 101 bool scrollToRevealSelection(); 92 102 … … 98 108 protected: 99 109 PopupMenu(PopupMenuClient* client); 110 111 #if PLATFORM(WIN) 112 // ScrollBarClient 113 virtual void valueChanged(Scrollbar*); 114 virtual IntRect windowClipRect() const; 115 #endif 100 116 101 117 private: … … 116 132 void invalidateItem(int index); 117 133 134 RefPtr<PlatformScrollbar> m_scrollBar; 118 135 HWND m_popup; 119 136 HDC m_DC;
Note: See TracChangeset
for help on using the changeset viewer.