Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: sky/engine/platform/Widget.h

Issue 685593005: Remove concept of child Widgets. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/platform/FrameWidget.h ('k') | sky/engine/platform/scroll/Scrollbar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/Widget.h
diff --git a/sky/engine/platform/Widget.h b/sky/engine/platform/Widget.h
index f441be4456908d8d1ec1bbe96ecdeacd51928f57..4e6600ae9174fd7beba73c012f9df20483ae5f5e 100644
--- a/sky/engine/platform/Widget.h
+++ b/sky/engine/platform/Widget.h
@@ -73,10 +73,6 @@ public:
void invalidate() { invalidateRect(boundsRect()); }
virtual void invalidateRect(const IntRect&) = 0;
- virtual void setFocus(bool) { }
-
- virtual void show() { }
- virtual void hide() { }
bool isSelfVisible() const { return m_selfVisible; } // Whether or not we have been explicitly marked as visible or not.
bool isParentVisible() const { return m_parentVisible; } // Whether or not our parent is visible.
bool isVisible() const { return m_selfVisible && m_parentVisible; } // Whether or not we are actually visible.
@@ -111,11 +107,6 @@ public:
IntPoint convertFromContainingWindow(const IntPoint&) const;
FloatPoint convertFromContainingWindow(const FloatPoint&) const;
- virtual void frameRectsChanged() { }
-
- // Notifies this widget that other widgets on the page have been repositioned.
- virtual void widgetPositionsUpdated() { }
-
// Virtual methods to convert points to/from the containing ScrollView
virtual IntRect convertToContainingView(const IntRect&) const;
virtual IntRect convertFromContainingView(const IntRect&) const;
@@ -126,13 +117,6 @@ public:
virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const;
virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const;
- // 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;
« no previous file with comments | « sky/engine/platform/FrameWidget.h ('k') | sky/engine/platform/scroll/Scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698