+2006-10-05 Dave Hyatt <hyatt@apple.com>
+
+ Stub out some stuff for widget focusability.
+
+ Reviewed by maciej
+
+ * page/FrameView.cpp:
+ (WebCore::FrameView::dispatchMouseEvent):
+ * platform/ScrollView.h:
+ * platform/Widget.h:
+
2006-10-05 Adam Roben <aroben@apple.com>
Reviewed by Maciej and Tim H.
if (!m_frame->document()->setFocusNode(0))
swallowEvent = true;
}
+
+#if PLATFORM(WIN)
+ // It's ok to shift focus to this view now that we know that no focus change got blocked.
+ if (!swallowEvent && !hasFocus())
+ setFocus();
+#endif
}
return swallowEvent;
#define ScrollView_H
#include "ScrollBarMode.h"
+#include "ScrollBar.h"
#include "Widget.h"
#include <wtf/Platform.h>
// (like Windows), we need this method in order to do the scroll ourselves.
void wheelEvent(PlatformWheelEvent&);
+ void scroll(ScrollDirection, ScrollGranularity);
+
#if PLATFORM(MAC)
NSView* getDocumentView() const;
#endif
Widget* capturingChild();
void setCapturingChild(Widget*);
+ void setFocused(bool);
+ Widget* focusedTarget();
+ Widget* focusedChild();
+ void setFocusedChild(Widget*);
+ void clearFocusFromDescendants();
+
IntRect convertToContainingWindow(const IntRect&) const;
IntPoint convertToContainingWindow(const IntPoint&) const;
IntPoint convertFromContainingWindow(const IntPoint&) const;