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_bubble_view.h" | 5 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h" |
6 | 6 |
7 #include "base/string16.h" | 7 #include "base/string16.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 #include "grit/theme_resources.h" | 22 #include "grit/theme_resources.h" |
23 #include "ui/base/keycodes/keyboard_codes.h" | 23 #include "ui/base/keycodes/keyboard_codes.h" |
24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
25 #include "ui/base/resource/resource_bundle.h" | 25 #include "ui/base/resource/resource_bundle.h" |
26 #include "ui/views/controls/button/text_button.h" | 26 #include "ui/views/controls/button/text_button.h" |
27 #include "ui/views/controls/combobox/combobox.h" | 27 #include "ui/views/controls/combobox/combobox.h" |
28 #include "ui/views/controls/label.h" | 28 #include "ui/views/controls/label.h" |
29 #include "ui/views/controls/link.h" | 29 #include "ui/views/controls/link.h" |
30 #include "ui/views/controls/textfield/textfield.h" | 30 #include "ui/views/controls/textfield/textfield.h" |
31 #include "ui/views/events/event.h" | |
32 #include "ui/views/layout/grid_layout.h" | 31 #include "ui/views/layout/grid_layout.h" |
33 #include "ui/views/layout/layout_constants.h" | 32 #include "ui/views/layout/layout_constants.h" |
34 #include "ui/views/widget/widget.h" | 33 #include "ui/views/widget/widget.h" |
35 | 34 |
36 using content::UserMetricsAction; | 35 using content::UserMetricsAction; |
37 using views::ColumnSet; | 36 using views::ColumnSet; |
38 using views::GridLayout; | 37 using views::GridLayout; |
39 | 38 |
40 namespace { | 39 namespace { |
41 | 40 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 const BookmarkNode* new_parent = | 342 const BookmarkNode* new_parent = |
344 parent_model_.GetNodeAt(parent_combobox_->selected_index()); | 343 parent_model_.GetNodeAt(parent_combobox_->selected_index()); |
345 if (new_parent != node->parent()) { | 344 if (new_parent != node->parent()) { |
346 content::RecordAction( | 345 content::RecordAction( |
347 UserMetricsAction("BookmarkBubble_ChangeParent")); | 346 UserMetricsAction("BookmarkBubble_ChangeParent")); |
348 model->Move(node, new_parent, new_parent->child_count()); | 347 model->Move(node, new_parent, new_parent->child_count()); |
349 } | 348 } |
350 } | 349 } |
351 } | 350 } |
352 } | 351 } |
OLD | NEW |