OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/toolbar/wrench_menu.h" | 5 #include "chrome/browser/ui/views/toolbar/wrench_menu.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "chrome/browser/ui/zoom/zoom_event_manager.h" | 27 #include "chrome/browser/ui/zoom/zoom_event_manager.h" |
28 #include "components/bookmarks/browser/bookmark_model.h" | 28 #include "components/bookmarks/browser/bookmark_model.h" |
29 #include "content/public/browser/host_zoom_map.h" | 29 #include "content/public/browser/host_zoom_map.h" |
30 #include "content/public/browser/notification_observer.h" | 30 #include "content/public/browser/notification_observer.h" |
31 #include "content/public/browser/notification_registrar.h" | 31 #include "content/public/browser/notification_registrar.h" |
32 #include "content/public/browser/notification_source.h" | 32 #include "content/public/browser/notification_source.h" |
33 #include "content/public/browser/notification_types.h" | 33 #include "content/public/browser/notification_types.h" |
34 #include "content/public/browser/user_metrics.h" | 34 #include "content/public/browser/user_metrics.h" |
35 #include "content/public/browser/web_contents.h" | 35 #include "content/public/browser/web_contents.h" |
36 #include "extensions/common/feature_switch.h" | 36 #include "extensions/common/feature_switch.h" |
37 #include "grit/chromium_strings.h" | |
38 #include "grit/generated_resources.h" | 37 #include "grit/generated_resources.h" |
39 #include "grit/theme_resources.h" | 38 #include "grit/theme_resources.h" |
40 #include "third_party/skia/include/core/SkCanvas.h" | 39 #include "third_party/skia/include/core/SkCanvas.h" |
41 #include "third_party/skia/include/core/SkPaint.h" | 40 #include "third_party/skia/include/core/SkPaint.h" |
42 #include "ui/base/l10n/l10n_util.h" | 41 #include "ui/base/l10n/l10n_util.h" |
43 #include "ui/base/layout.h" | 42 #include "ui/base/layout.h" |
44 #include "ui/base/resource/resource_bundle.h" | 43 #include "ui/base/resource/resource_bundle.h" |
45 #include "ui/gfx/canvas.h" | 44 #include "ui/gfx/canvas.h" |
46 #include "ui/gfx/font_list.h" | 45 #include "ui/gfx/font_list.h" |
47 #include "ui/gfx/image/image.h" | 46 #include "ui/gfx/image/image.h" |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 0, | 1261 0, |
1263 BookmarkMenuDelegate::SHOW_PERMANENT_FOLDERS, | 1262 BookmarkMenuDelegate::SHOW_PERMANENT_FOLDERS, |
1264 BOOKMARK_LAUNCH_LOCATION_WRENCH_MENU); | 1263 BOOKMARK_LAUNCH_LOCATION_WRENCH_MENU); |
1265 } | 1264 } |
1266 | 1265 |
1267 int WrenchMenu::ModelIndexFromCommandId(int command_id) const { | 1266 int WrenchMenu::ModelIndexFromCommandId(int command_id) const { |
1268 CommandIDToEntry::const_iterator ix = command_id_to_entry_.find(command_id); | 1267 CommandIDToEntry::const_iterator ix = command_id_to_entry_.find(command_id); |
1269 DCHECK(ix != command_id_to_entry_.end()); | 1268 DCHECK(ix != command_id_to_entry_.end()); |
1270 return ix->second.second; | 1269 return ix->second.second; |
1271 } | 1270 } |
OLD | NEW |