Changeset 19698 in webkit


Ignore:
Timestamp:
Feb 18, 2007 4:26:32 PM (17 years ago)
Author:
aroben
Message:

Reviewed by Hyatt.

A little preparation for <rdar://problem/5006872>.

  • platform/PopupMenu.h:
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r19697 r19698  
     12007-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
    192007-02-18  Alexey Proskuryakov  <ap@webkit.org>
    210
  • trunk/WebCore/platform/PopupMenu.h

    r19338 r19698  
    3636#endif
    3737#elif PLATFORM(WIN)
     38#include "ScrollBar.h"
     39#include <wtf/RefPtr.h>
    3840typedef struct HWND__* HWND;
    3941typedef struct HDC__* HDC;
     
    4850
    4951class FrameView;
     52class PlatformScrollbar;
    5053
    51 class PopupMenu : public Shared<PopupMenu> {
     54class PopupMenu : public Shared<PopupMenu>
     55#if PLATFORM(WIN)
     56                , private ScrollbarClient
     57#endif
     58{
    5259public:
    5360    static PassRefPtr<PopupMenu> create(PopupMenuClient* client) { return new PopupMenu(client); }
     
    6471
    6572#if PLATFORM(WIN)
     73    PlatformScrollbar* scrollBar() const { return m_scrollBar.get(); }
     74
    6675    bool up(unsigned lines = 1);
    6776    bool down(unsigned lines = 1);
     
    7180    IntRect clientRect() const;
    7281
    73     int listIndexAtPoint(const IntPoint& point) { return (point.y() + m_scrollOffset) / m_itemHeight; }
     82    int visibleItems() const;
     83
     84    int listIndexAtPoint(const IntPoint&) const;
    7485
    7586    bool setFocusedIndex(int index, bool hotTracking = false, bool fireOnChange = false);
     
    8899    int scrollOffset() const { return m_scrollOffset; }
    89100
    90     bool scrollTo(int);
    91101    bool scrollToRevealSelection();
    92102
     
    98108protected:
    99109    PopupMenu(PopupMenuClient* client);
     110
     111#if PLATFORM(WIN)
     112    // ScrollBarClient
     113    virtual void valueChanged(Scrollbar*);
     114    virtual IntRect windowClipRect() const;
     115#endif
    100116   
    101117private:
     
    116132    void invalidateItem(int index);
    117133
     134    RefPtr<PlatformScrollbar> m_scrollBar;
    118135    HWND m_popup;
    119136    HDC m_DC;
Note: See TracChangeset for help on using the changeset viewer.