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