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

Unified Diff: ui/views/widget/root_view.cc

Issue 7104042: ui/views: Fix the signature of View::OnViewAdded/Removed overridden methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky,peter review Created 9 years, 6 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 | « ui/views/widget/root_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/root_view.cc
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc
index 8a4f053954eba74167a664c6649411f2fc6c41d6..dd2ebf521af8d0382f8be8f5dd660e24ae6c09fc 100644
--- a/ui/views/widget/root_view.cc
+++ b/ui/views/widget/root_view.cc
@@ -31,11 +31,11 @@ RootView::~RootView() {
////////////////////////////////////////////////////////////////////////////////
// RootView, View overrides:
-void RootView::OnViewRemoved(View* parent, View* child) {
- if (child == mouse_pressed_handler_)
+void RootView::OnViewRemoved(const View& parent, const View& child) {
+ if (&child == mouse_pressed_handler_)
mouse_pressed_handler_ = NULL;
- GetFocusManager()->RemoveView(child);
+ GetFocusManager()->RemoveView(&child);
}
bool RootView::OnKeyPressed(const KeyEvent& event) {
« no previous file with comments | « ui/views/widget/root_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698