| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" | |
| 8 #include "views/widget/root_view.h" | 7 #include "views/widget/root_view.h" |
| 9 #include "views/widget/widget.h" | 8 #include "views/widget/widget.h" |
| 10 #include "views/window/window.h" | 9 #include "views/window/window.h" |
| 11 | 10 |
| 12 #if defined(OS_WIN) | 11 #if !defined(OS_WIN) |
| 13 #include "app/win_util.h" | |
| 14 #else | |
| 15 #include "views/window/hit_test.h" | 12 #include "views/window/hit_test.h" |
| 16 #endif | 13 #endif |
| 17 | 14 |
| 18 namespace views { | 15 namespace views { |
| 19 | 16 |
| 20 const int NonClientFrameView::kFrameShadowThickness = 1; | 17 const int NonClientFrameView::kFrameShadowThickness = 1; |
| 21 const int NonClientFrameView::kClientEdgeThickness = 1; | 18 const int NonClientFrameView::kClientEdgeThickness = 1; |
| 22 | 19 |
| 23 // The frame view and the client view are always at these specific indices, | 20 // The frame view and the client view are always at these specific indices, |
| 24 // because the RootView message dispatch sends messages to items higher in the | 21 // because the RootView message dispatch sends messages to items higher in the |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 bool NonClientFrameView::ShouldPaintAsActive() const { | 249 bool NonClientFrameView::ShouldPaintAsActive() const { |
| 253 return GetWindow()->IsActive() || paint_as_active_; | 250 return GetWindow()->IsActive() || paint_as_active_; |
| 254 } | 251 } |
| 255 | 252 |
| 256 bool NonClientFrameView::GetAccessibleRole(AccessibilityTypes::Role* role) { | 253 bool NonClientFrameView::GetAccessibleRole(AccessibilityTypes::Role* role) { |
| 257 *role = AccessibilityTypes::ROLE_WINDOW; | 254 *role = AccessibilityTypes::ROLE_WINDOW; |
| 258 return true; | 255 return true; |
| 259 } | 256 } |
| 260 | 257 |
| 261 } // namespace views | 258 } // namespace views |
| OLD | NEW |