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_menu_controller_views.h" | 5 #include "chrome/browser/views/bookmark_menu_controller_views.h" |
6 | 6 |
7 #include "app/os_exchange_data.h" | 7 #include "app/os_exchange_data.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util-inl.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/bookmarks/bookmark_node_data.h" | 11 #include "chrome/browser/bookmarks/bookmark_node_data.h" |
12 #include "chrome/browser/bookmarks/bookmark_model.h" | 12 #include "chrome/browser/bookmarks/bookmark_model.h" |
13 #include "chrome/browser/bookmarks/bookmark_utils.h" | 13 #include "chrome/browser/bookmarks/bookmark_utils.h" |
14 #include "chrome/browser/metrics/user_metrics.h" | 14 #include "chrome/browser/metrics/user_metrics.h" |
15 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/tab_contents/page_navigator.h" | 16 #include "chrome/browser/tab_contents/page_navigator.h" |
17 #include "chrome/browser/views/bookmark_bar_view.h" | 17 #include "chrome/browser/views/bookmark_bar_view.h" |
18 #include "chrome/browser/views/event_utils.h" | 18 #include "chrome/browser/views/event_utils.h" |
19 #include "chrome/common/page_transition_types.h" | 19 #include "chrome/common/page_transition_types.h" |
20 #include "grit/app_resources.h" | 20 #include "grit/app_resources.h" |
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 "views/controls/button/menu_button.h" | 23 #include "views/controls/button/menu_button.h" |
24 | 24 |
25 using views::MenuItemView; | 25 using views::MenuItemView; |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 break; | 406 break; |
407 } | 407 } |
408 } | 408 } |
409 if (ancestor_removed) { | 409 if (ancestor_removed) { |
410 node_to_menu_id_map_.erase(i++); | 410 node_to_menu_id_map_.erase(i++); |
411 } else { | 411 } else { |
412 ++i; | 412 ++i; |
413 } | 413 } |
414 } | 414 } |
415 } | 415 } |
OLD | NEW |