OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/controls/tree/tree_view.h" | 5 #include "views/controls/tree/tree_view.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/win/win_util.h" | 12 #include "base/win/win_util.h" |
13 #include "grit/ui_resources.h" | 13 #include "grit/ui_resources.h" |
14 #include "ui/base/accessibility/accessible_view_state.h" | 14 #include "ui/base/accessibility/accessible_view_state.h" |
15 #include "ui/base/keycodes/keyboard_code_conversion_win.h" | 15 #include "ui/base/keycodes/keyboard_code_conversion_win.h" |
16 #include "ui/base/keycodes/keyboard_codes.h" | 16 #include "ui/base/keycodes/keyboard_codes.h" |
17 #include "ui/base/l10n/l10n_util_win.h" | 17 #include "ui/base/l10n/l10n_util_win.h" |
18 #include "ui/base/models/accelerator.h" | 18 #include "ui/base/models/accelerator.h" |
19 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" |
20 #include "ui/base/win/hwnd_util.h" | 20 #include "ui/base/win/hwnd_util.h" |
21 #include "ui/gfx/canvas_skia.h" | 21 #include "ui/gfx/canvas_skia.h" |
22 #include "ui/gfx/canvas_skia_paint.h" | 22 #include "ui/gfx/canvas_skia_paint.h" |
23 #include "ui/gfx/favicon_size.h" | 23 #include "ui/gfx/favicon_size.h" |
24 #include "ui/gfx/icon_util.h" | 24 #include "ui/gfx/icon_util.h" |
25 #include "ui/gfx/point.h" | 25 #include "ui/gfx/point.h" |
26 #include "ui/views/focus/focus_manager.h" | 26 #include "ui/views/focus/focus_manager.h" |
27 #include "views/widget/widget.h" | 27 #include "ui/views/widget/widget.h" |
28 | 28 |
29 using ui::TreeModel; | 29 using ui::TreeModel; |
30 using ui::TreeModelNode; | 30 using ui::TreeModelNode; |
31 | 31 |
32 namespace views { | 32 namespace views { |
33 | 33 |
34 TreeView::TreeView() | 34 TreeView::TreeView() |
35 : tree_view_(NULL), | 35 : tree_view_(NULL), |
36 model_(NULL), | 36 model_(NULL), |
37 auto_expand_children_(false), | 37 auto_expand_children_(false), |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 } | 802 } |
803 // Fall through and let the default handler process as well. | 803 // Fall through and let the default handler process as well. |
804 break; | 804 break; |
805 } | 805 } |
806 WNDPROC handler = tree->original_handler_; | 806 WNDPROC handler = tree->original_handler_; |
807 DCHECK(handler); | 807 DCHECK(handler); |
808 return CallWindowProc(handler, window, message, w_param, l_param); | 808 return CallWindowProc(handler, window, message, w_param, l_param); |
809 } | 809 } |
810 | 810 |
811 } // namespace views | 811 } // namespace views |
OLD | NEW |