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

Side by Side Diff: views/window/non_client_view.cc

Issue 303012: Fix bubbles deactivating the opaque frame.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/window/non_client_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "views/window/non_client_view.h" 5 #include "views/window/non_client_view.h"
6 6
7 #include "app/theme_provider.h" 7 #include "app/theme_provider.h"
8 #include "views/widget/root_view.h" 8 #include "views/widget/root_view.h"
9 #include "views/widget/widget.h" 9 #include "views/widget/widget.h"
10 #include "views/window/window.h" 10 #include "views/window/window.h"
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 component = HTBOTTOM; 269 component = HTBOTTOM;
270 } else { 270 } else {
271 return HTNOWHERE; 271 return HTNOWHERE;
272 } 272 }
273 273
274 // If the window can't be resized, there are no resize boundaries, just 274 // If the window can't be resized, there are no resize boundaries, just
275 // window borders. 275 // window borders.
276 return can_resize ? component : HTBORDER; 276 return can_resize ? component : HTBORDER;
277 } 277 }
278 278
279 bool NonClientFrameView::ShouldPaintAsActive() const {
280 return GetWindow()->IsActive() || paint_as_active_;
281 }
282
279 } // namespace views 283 } // namespace views
OLDNEW
« no previous file with comments | « views/window/non_client_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698