OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/bookmark_bubble_view.h" | 5 #include "chrome/browser/views/bookmark_bubble_view.h" |
6 | 6 |
7 #include "app/keyboard_codes.h" | 7 #include "app/keyboard_codes.h" |
8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "chrome/app/chrome_dll_resource.h" | 12 #include "chrome/app/chrome_command_ids.h" |
13 #include "chrome/browser/bookmarks/bookmark_editor.h" | 13 #include "chrome/browser/bookmarks/bookmark_editor.h" |
14 #include "chrome/browser/bookmarks/bookmark_model.h" | 14 #include "chrome/browser/bookmarks/bookmark_model.h" |
15 #include "chrome/browser/bookmarks/bookmark_utils.h" | 15 #include "chrome/browser/bookmarks/bookmark_utils.h" |
16 #include "chrome/browser/metrics/user_metrics.h" | 16 #include "chrome/browser/metrics/user_metrics.h" |
17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
18 #include "chrome/browser/views/info_bubble.h" | 18 #include "chrome/browser/views/info_bubble.h" |
19 #include "chrome/common/notification_service.h" | 19 #include "chrome/common/notification_service.h" |
20 #include "gfx/canvas.h" | 20 #include "gfx/canvas.h" |
21 #include "gfx/color_utils.h" | 21 #include "gfx/color_utils.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 const BookmarkNode* new_parent = | 404 const BookmarkNode* new_parent = |
405 parent_model_.GetNodeAt(parent_combobox_->selected_item()); | 405 parent_model_.GetNodeAt(parent_combobox_->selected_item()); |
406 if (new_parent != node->GetParent()) { | 406 if (new_parent != node->GetParent()) { |
407 UserMetrics::RecordAction( | 407 UserMetrics::RecordAction( |
408 UserMetricsAction("BookmarkBubble_ChangeParent"), profile_); | 408 UserMetricsAction("BookmarkBubble_ChangeParent"), profile_); |
409 model->Move(node, new_parent, new_parent->GetChildCount()); | 409 model->Move(node, new_parent, new_parent->GetChildCount()); |
410 } | 410 } |
411 } | 411 } |
412 } | 412 } |
413 } | 413 } |
OLD | NEW |