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

Unified Diff: views/window/non_client_view.cc

Issue 7054052: Move more from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 | « views/window/native_window_win.cc ('k') | views/window/window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/non_client_view.cc
===================================================================
--- views/window/non_client_view.cc (revision 88218)
+++ views/window/non_client_view.cc (working copy)
@@ -60,7 +60,7 @@
}
void NonClientView::WindowClosing() {
- client_view_->WindowClosing();
+ client_view_->WidgetClosing();
}
void NonClientView::UpdateFrame() {
@@ -190,7 +190,7 @@
bool NonClientFrameView::HitTest(const gfx::Point& l) const {
// For the default case, we assume the non-client frame view never overlaps
// the client view.
- return !GetWindow()->client_view()->bounds().Contains(l);
+ return !GetWidget()->client_view()->bounds().Contains(l);
}
////////////////////////////////////////////////////////////////////////////////
@@ -246,7 +246,7 @@
}
bool NonClientFrameView::ShouldPaintAsActive() const {
- return GetWindow()->IsActive() || paint_as_active_;
+ return GetWidget()->IsActive() || paint_as_active_;
}
void NonClientFrameView::GetAccessibleState(ui::AccessibleViewState* state) {
« no previous file with comments | « views/window/native_window_win.cc ('k') | views/window/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698