OLD | NEW |
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 "chrome/browser/ui/views/bookmarks/bookmark_editor_view.h" | 5 #include "chrome/browser/ui/views/bookmarks/bookmark_editor_view.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "ui/views/controls/menu/menu_runner.h" | 32 #include "ui/views/controls/menu/menu_runner.h" |
33 #include "ui/views/controls/textfield/textfield.h" | 33 #include "ui/views/controls/textfield/textfield.h" |
34 #include "ui/views/controls/tree/tree_view.h" | 34 #include "ui/views/controls/tree/tree_view.h" |
35 #include "ui/views/focus/focus_manager.h" | 35 #include "ui/views/focus/focus_manager.h" |
36 #include "ui/views/layout/grid_layout.h" | 36 #include "ui/views/layout/grid_layout.h" |
37 #include "ui/views/layout/layout_constants.h" | 37 #include "ui/views/layout/layout_constants.h" |
38 #include "ui/views/widget/widget.h" | 38 #include "ui/views/widget/widget.h" |
39 #include "ui/views/window/dialog_client_view.h" | 39 #include "ui/views/window/dialog_client_view.h" |
40 #include "url/gurl.h" | 40 #include "url/gurl.h" |
41 | 41 |
| 42 using bookmarks::BookmarkExpandedStateTracker; |
42 using views::GridLayout; | 43 using views::GridLayout; |
43 | 44 |
44 namespace { | 45 namespace { |
45 | 46 |
46 // Background color of text field when URL is invalid. | 47 // Background color of text field when URL is invalid. |
47 const SkColor kErrorColor = SkColorSetRGB(0xFF, 0xBC, 0xBC); | 48 const SkColor kErrorColor = SkColorSetRGB(0xFF, 0xBC, 0xBC); |
48 | 49 |
49 } // namespace | 50 } // namespace |
50 | 51 |
51 // static | 52 // static |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 } | 637 } |
637 return context_menu_model_.get(); | 638 return context_menu_model_.get(); |
638 } | 639 } |
639 | 640 |
640 void BookmarkEditorView::EditorTreeModel::SetTitle( | 641 void BookmarkEditorView::EditorTreeModel::SetTitle( |
641 ui::TreeModelNode* node, | 642 ui::TreeModelNode* node, |
642 const base::string16& title) { | 643 const base::string16& title) { |
643 if (!title.empty()) | 644 if (!title.empty()) |
644 ui::TreeNodeModel<EditorNode>::SetTitle(node, title); | 645 ui::TreeNodeModel<EditorNode>::SetTitle(node, title); |
645 } | 646 } |
OLD | NEW |