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

Unified Diff: Source/platform/Widget.h

Issue 648913002: Clean up vestiges of ScrollView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | « Source/core/testing/Internals.idl ('k') | Source/platform/exported/WebScrollbarImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/Widget.h
diff --git a/Source/platform/Widget.h b/Source/platform/Widget.h
index ffe2ac6e1dc1327645a8548d5c46e4b6553e23c6..1a8a170e792cea895be6f1f5386a25d5d22a1aae 100644
--- a/Source/platform/Widget.h
+++ b/Source/platform/Widget.h
@@ -40,13 +40,10 @@ class Event;
class GraphicsContext;
class HostWindow;
-// The Widget class serves as a base class for three kinds of objects:
-// (1) Scrollable areas (ScrollView)
-// (2) Scrollbars (Scrollbar)
-// (3) Plugins (PluginView)
+// The Widget class serves as a base class for FrameView, Scrollbar, and PluginView.
//
// Widgets are connected in a hierarchy, with the restriction that plugins and
-// scrollbars are always leaves of the tree. Only ScrollViews can have children
+// scrollbars are always leaves of the tree. Only FrameView can have children
// (and therefore the Widget class has no concept of children).
class PLATFORM_EXPORT Widget : public RefCounted<Widget> {
public:
@@ -89,7 +86,6 @@ public:
virtual bool isPluginContainer() const { return false; }
virtual bool pluginShouldPersist() const { return false; }
virtual bool isScrollbar() const { return false; }
- virtual bool isScrollView() const { return false; }
virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; }
virtual void setParent(Widget*);
@@ -114,7 +110,7 @@ public:
// 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 methods to convert points to/from the containing Widget
virtual IntRect convertToContainingView(const IntRect&) const;
virtual IntRect convertFromContainingView(const IntRect&) const;
virtual IntPoint convertToContainingView(const IntPoint&) const;
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/platform/exported/WebScrollbarImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698