| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/widget/root_view.h" | 5 #include "ui/views/widget/root_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 } | 217 } |
| 218 | 218 |
| 219 void RootView::SetFocusTraversableParentView(View* view) { | 219 void RootView::SetFocusTraversableParentView(View* view) { |
| 220 focus_traversable_parent_view_ = view; | 220 focus_traversable_parent_view_ = view; |
| 221 } | 221 } |
| 222 | 222 |
| 223 // System events --------------------------------------------------------------- | 223 // System events --------------------------------------------------------------- |
| 224 | 224 |
| 225 void RootView::ThemeChanged() { | 225 void RootView::ThemeChanged() { |
| 226 View::PropagateThemeChanged(); | 226 View::PropagateThemeChanged(); |
| 227 Layout(); |
| 227 } | 228 } |
| 228 | 229 |
| 229 void RootView::LocaleChanged() { | 230 void RootView::LocaleChanged() { |
| 230 View::PropagateLocaleChanged(); | 231 View::PropagateLocaleChanged(); |
| 231 } | 232 } |
| 232 | 233 |
| 233 void RootView::DeviceScaleFactorChanged(float device_scale_factor) { | 234 void RootView::DeviceScaleFactorChanged(float device_scale_factor) { |
| 234 View::PropagateDeviceScaleFactorChanged(device_scale_factor); | 235 View::PropagateDeviceScaleFactorChanged(device_scale_factor); |
| 235 } | 236 } |
| 236 | 237 |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 | 758 |
| 758 #ifndef NDEBUG | 759 #ifndef NDEBUG |
| 759 DCHECK(!event_dispatch_target_ || Contains(event_dispatch_target_)); | 760 DCHECK(!event_dispatch_target_ || Contains(event_dispatch_target_)); |
| 760 #endif | 761 #endif |
| 761 | 762 |
| 762 return details; | 763 return details; |
| 763 } | 764 } |
| 764 | 765 |
| 765 } // namespace internal | 766 } // namespace internal |
| 766 } // namespace views | 767 } // namespace views |
| OLD | NEW |