#define Widget_h
#include "platform/PlatformExport.h"
+#include "platform/geometry/FloatPoint.h"
#include "platform/geometry/IntRect.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
-namespace WebCore {
+namespace blink {
class Event;
class GraphicsContext;
virtual void handleEvent(Event*) { }
- IntRect convertToRootView(const IntRect&) const;
- IntRect convertFromRootView(const IntRect&) const;
-
- IntPoint convertToRootView(const IntPoint&) const;
- IntPoint convertFromRootView(const IntPoint&) const;
-
// It is important for cross-platform code to realize that Mac has flipped coordinates. Therefore any code
// that tries to convert the location of a rect using the point-based convertFromContainingWindow will end
// up with an inaccurate rect. Always make sure to use the rect-based convertFromContainingWindow method
IntPoint convertToContainingWindow(const IntPoint&) const;
IntPoint convertFromContainingWindow(const IntPoint&) const;
+ FloatPoint convertFromContainingWindow(const FloatPoint&) const;
virtual void frameRectsChanged() { }
// Notifies this widget that it will no longer be receiving events.
virtual void eventListenersRemoved() { }
+#if ENABLE(OILPAN)
+ virtual void detach() { }
+#endif
+
private:
Widget* m_parent;
IntRect m_frame;
bool m_parentVisible;
};
-} // namespace WebCore
+} // namespace blink
#endif // Widget_h