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

Unified Diff: chrome/views/view.cc

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/views/view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/view.cc
===================================================================
--- chrome/views/view.cc (revision 14954)
+++ chrome/views/view.cc (working copy)
@@ -21,6 +21,7 @@
#include "chrome/views/layout_manager.h"
#include "chrome/views/widget/root_view.h"
#include "chrome/views/widget/widget.h"
+#include "chrome/views/window/window.h"
#if defined(OS_WIN)
#include "chrome/views/widget/tooltip_manager.h"
#include "chrome/views/accessibility/view_accessibility_wrapper.h"
@@ -746,6 +747,11 @@
return parent_ ? parent_->GetWidget() : NULL;
}
+Window* View::GetWindow() const {
+ Widget* widget = GetWidget();
+ return widget ? widget->GetWindow() : NULL;
+}
+
// Get the containing RootView
RootView* View::GetRootView() {
Widget* widget = GetWidget();
« no previous file with comments | « chrome/views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698