OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/views/root_view.h" | 5 #include "chrome/views/root_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include "base/base_drag_source.h" | 10 #include "base/base_drag_source.h" |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 ///////////////////////////////////////////////////////////////////////////// | 213 ///////////////////////////////////////////////////////////////////////////// |
214 // | 214 // |
215 // RootView - tree | 215 // RootView - tree |
216 // | 216 // |
217 ///////////////////////////////////////////////////////////////////////////// | 217 ///////////////////////////////////////////////////////////////////////////// |
218 | 218 |
219 Widget* RootView::GetWidget() const { | 219 Widget* RootView::GetWidget() const { |
220 return widget_; | 220 return widget_; |
221 } | 221 } |
222 | 222 |
| 223 void RootView::ThemeChanged() { |
| 224 View::ThemeChanged(); |
| 225 } |
| 226 |
223 ///////////////////////////////////////////////////////////////////////////// | 227 ///////////////////////////////////////////////////////////////////////////// |
224 // | 228 // |
225 // RootView - event dispatch and propagation | 229 // RootView - event dispatch and propagation |
226 // | 230 // |
227 ///////////////////////////////////////////////////////////////////////////// | 231 ///////////////////////////////////////////////////////////////////////////// |
228 | 232 |
229 void RootView::ViewHierarchyChanged(bool is_add, View* parent, View* child) { | 233 void RootView::ViewHierarchyChanged(bool is_add, View* parent, View* child) { |
230 if (!is_add) { | 234 if (!is_add) { |
231 if (!explicit_mouse_handler_ && mouse_pressed_handler_ == child) { | 235 if (!explicit_mouse_handler_ && mouse_pressed_handler_ == child) { |
232 mouse_pressed_handler_ = NULL; | 236 mouse_pressed_handler_ = NULL; |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 void RootView::SetAccessibleName(const std::wstring& name) { | 970 void RootView::SetAccessibleName(const std::wstring& name) { |
967 accessible_name_.assign(name); | 971 accessible_name_.assign(name); |
968 } | 972 } |
969 | 973 |
970 View* RootView::GetDragView() { | 974 View* RootView::GetDragView() { |
971 return drag_view_; | 975 return drag_view_; |
972 } | 976 } |
973 | 977 |
974 } // namespace views | 978 } // namespace views |
975 | 979 |
OLD | NEW |