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

Unified Diff: chrome/views/view.h

Issue 100221: Adds a GetWindow method to View. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/view.h
===================================================================
--- chrome/views/view.h (revision 14954)
+++ chrome/views/view.h (working copy)
@@ -45,6 +45,7 @@
class RootView;
class ScrollView;
class Widget;
+class Window;
// ContextMenuController is responsible for showing the context menu for a
// View. To use a ContextMenuController invoke SetContextMenuController on a
@@ -433,6 +434,9 @@
// Get the Widget that hosts this View, if any.
virtual Widget* GetWidget() const;
+ // Gets the Widget that most closely contains this View, if any.
+ virtual Window* GetWindow() const;
+
// Get the containing RootView
virtual RootView* GetRootView();
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698