| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |