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/strings/string16.h" | 7 #include "base/strings/string16.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
11 #include "chrome/browser/bookmarks/bookmark_model.h" | |
12 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
13 #include "chrome/browser/bookmarks/bookmark_utils.h" | |
14 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" | 13 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" |
16 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 14 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
17 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view_observer.h" | 15 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view_observer.h" |
18 #include "chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.h" | 16 #include "chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.h" |
| 17 #include "components/bookmarks/core/browser/bookmark_model.h" |
| 18 #include "components/bookmarks/core/browser/bookmark_utils.h" |
19 #include "content/public/browser/user_metrics.h" | 19 #include "content/public/browser/user_metrics.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
21 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
22 #include "ui/accessibility/ax_view_state.h" | 22 #include "ui/accessibility/ax_view_state.h" |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 #include "ui/base/resource/resource_bundle.h" | 24 #include "ui/base/resource/resource_bundle.h" |
25 #include "ui/events/keycodes/keyboard_codes.h" | 25 #include "ui/events/keycodes/keyboard_codes.h" |
26 #include "ui/views/bubble/bubble_frame_view.h" | 26 #include "ui/views/bubble/bubble_frame_view.h" |
27 #include "ui/views/controls/button/label_button.h" | 27 #include "ui/views/controls/button/label_button.h" |
28 #include "ui/views/controls/combobox/combobox.h" | 28 #include "ui/views/controls/combobox/combobox.h" |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 if (node) { | 360 if (node) { |
361 const base::string16 new_title = title_tf_->text(); | 361 const base::string16 new_title = title_tf_->text(); |
362 if (new_title != node->GetTitle()) { | 362 if (new_title != node->GetTitle()) { |
363 model->SetTitle(node, new_title); | 363 model->SetTitle(node, new_title); |
364 content::RecordAction( | 364 content::RecordAction( |
365 UserMetricsAction("BookmarkBubble_ChangeTitleInBubble")); | 365 UserMetricsAction("BookmarkBubble_ChangeTitleInBubble")); |
366 } | 366 } |
367 parent_model_.MaybeChangeParent(node, parent_combobox_->selected_index()); | 367 parent_model_.MaybeChangeParent(node, parent_combobox_->selected_index()); |
368 } | 368 } |
369 } | 369 } |
OLD | NEW |