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

Side by Side Diff: ui/views/widget/root_view.cc

Issue 1906563002: [WIP] Fire a theme changed notification when device scan completes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Recalculate tab and new tab button sizes Created 4 years, 7 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698