Changeset 16801 in webkit


Ignore:
Timestamp:
Oct 5, 2006 1:58:48 AM (18 years ago)
Author:
hyatt
Message:

Widget focusability work.

Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r16799 r16801  
     12006-10-05  Dave Hyatt  <hyatt@apple.com>
     2
     3        Stub out some stuff for widget focusability.
     4
     5        Reviewed by maciej
     6 
     7        * page/FrameView.cpp:
     8        (WebCore::FrameView::dispatchMouseEvent):
     9        * platform/ScrollView.h:
     10        * platform/Widget.h:
     11
    1122006-10-05  Adam Roben  <aroben@apple.com>
    213
  • trunk/WebCore/page/FrameView.cpp

    r16764 r16801  
    12131213                swallowEvent = true;
    12141214        }
     1215
     1216#if PLATFORM(WIN)
     1217        // It's ok to shift focus to this view now that we know that no focus change got blocked.
     1218        if (!swallowEvent && !hasFocus())
     1219            setFocus();
     1220#endif
    12151221    }
    12161222
  • trunk/WebCore/platform/ScrollView.h

    r16764 r16801  
    2828
    2929#include "ScrollBarMode.h"
     30#include "ScrollBar.h"
    3031#include "Widget.h"
    3132#include <wtf/Platform.h>
     
    9192        void wheelEvent(PlatformWheelEvent&);
    9293
     94        void scroll(ScrollDirection, ScrollGranularity);
     95
    9396#if PLATFORM(MAC)
    9497        NSView* getDocumentView() const;
  • trunk/WebCore/platform/Widget.h

    r16764 r16801  
    145145        void setCapturingChild(Widget*);
    146146       
     147        void setFocused(bool);
     148        Widget* focusedTarget();
     149        Widget* focusedChild();
     150        void setFocusedChild(Widget*);
     151        void clearFocusFromDescendants();
     152
    147153        IntRect convertToContainingWindow(const IntRect&) const;
    148154        IntPoint convertToContainingWindow(const IntPoint&) const;
Note: See TracChangeset for help on using the changeset viewer.