summaryrefslogtreecommitdiffstats
path: root/views/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/view.h')
-rw-r--r--views/view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/view.h b/views/view.h
index cb44e2a..dd7662b 100644
--- a/views/view.h
+++ b/views/view.h
@@ -428,6 +428,9 @@ class View : public AcceleratorTarget {
virtual Widget* GetWidget() const;
// Gets the Widget that most closely contains this View, if any.
+ // NOTE: almost all views displayed on screen have a Widget, but not
+ // necessarily a Window. This is due to widgets being able to create top
+ // level windows (as is done for popups, bubbles and menus).
virtual Window* GetWindow() const;
// Get the containing RootView