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

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

Issue 2878055: Make theme change notifications auto-propagate through the view hierarchy, in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/widget/root_view.h ('k') | views/window/non_client_view.cc » ('j') | 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) 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/widget/root_view.h" 5 #include "views/widget/root_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/drag_drop_types.h" 9 #include "app/drag_drop_types.h"
10 #include "base/keyboard_codes.h" 10 #include "base/keyboard_codes.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 ///////////////////////////////////////////////////////////////////////////// 231 /////////////////////////////////////////////////////////////////////////////
232 // 232 //
233 // RootView - tree 233 // RootView - tree
234 // 234 //
235 ///////////////////////////////////////////////////////////////////////////// 235 /////////////////////////////////////////////////////////////////////////////
236 236
237 Widget* RootView::GetWidget() const { 237 Widget* RootView::GetWidget() const {
238 return widget_; 238 return widget_;
239 } 239 }
240 240
241 void RootView::ThemeChanged() { 241 void RootView::NotifyThemeChanged() {
242 View::ThemeChanged(); 242 View::PropagateThemeChanged();
243 } 243 }
244 244
245 void RootView::NotifyLocaleChanged() { 245 void RootView::NotifyLocaleChanged() {
246 // Propagate downside. Note that View::NotifyLocaleChanged() is private. 246 View::PropagateLocaleChanged();
247 View::NotifyLocaleChanged();
248 } 247 }
249 248
250 ///////////////////////////////////////////////////////////////////////////// 249 /////////////////////////////////////////////////////////////////////////////
251 // 250 //
252 // RootView - event dispatch and propagation 251 // RootView - event dispatch and propagation
253 // 252 //
254 ///////////////////////////////////////////////////////////////////////////// 253 /////////////////////////////////////////////////////////////////////////////
255 254
256 void RootView::ViewHierarchyChanged(bool is_add, View* parent, View* child) { 255 void RootView::ViewHierarchyChanged(bool is_add, View* parent, View* child) {
257 if (!is_add) { 256 if (!is_add) {
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 static_cast<WidgetGtk*>(GetWidget())->window_contents(); 707 static_cast<WidgetGtk*>(GetWidget())->window_contents();
709 if (!native_view) 708 if (!native_view)
710 return; 709 return;
711 gdk_window_set_cursor(native_view->window, cursor); 710 gdk_window_set_cursor(native_view->window, cursor);
712 if (cursor) 711 if (cursor)
713 gdk_cursor_destroy(cursor); 712 gdk_cursor_destroy(cursor);
714 #endif 713 #endif
715 } 714 }
716 715
717 } // namespace views 716 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/root_view.h ('k') | views/window/non_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698