| 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 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.h" |
| 6 | 6 |
| 7 #include "base/strings/sys_string_conversions.h" | 7 #include "base/strings/sys_string_conversions.h" |
| 8 #include "chrome/app/chrome_command_ids.h" // IDC_BOOKMARK_MENU | 8 #include "chrome/app/chrome_command_ids.h" // IDC_BOOKMARK_MENU |
| 9 #import "chrome/browser/app_controller_mac.h" | 9 #import "chrome/browser/app_controller_mac.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" | 12 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/browser/ui/browser_finder.h" | 14 #include "chrome/browser/ui/browser_finder.h" |
| 15 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge.h" | 15 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge.h" |
| 16 #import "chrome/browser/ui/cocoa/l10n_util.h" | 16 #import "chrome/browser/ui/cocoa/l10n_util.h" |
| 17 #include "chrome/browser/ui/host_desktop.h" | 17 #include "chrome/browser/ui/host_desktop.h" |
| 18 #include "content/public/browser/user_metrics.h" | 18 #include "content/public/browser/user_metrics.h" |
| 19 #import "ui/base/cocoa/cocoa_event_utils.h" | 19 #import "ui/base/cocoa/cocoa_base_utils.h" |
| 20 #import "ui/base/cocoa/menu_controller.h" | 20 #import "ui/base/cocoa/menu_controller.h" |
| 21 | 21 |
| 22 using base::UserMetricsAction; | 22 using base::UserMetricsAction; |
| 23 using content::OpenURLParams; | 23 using content::OpenURLParams; |
| 24 using content::Referrer; | 24 using content::Referrer; |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 // Menus more than this many pixels wide will get trimmed | 28 // Menus more than this many pixels wide will get trimmed |
| 29 // TODO(jrg): ask UI dudes what a good value is. | 29 // TODO(jrg): ask UI dudes what a good value is. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 - (IBAction)openAllBookmarksNewWindow:(id)sender { | 152 - (IBAction)openAllBookmarksNewWindow:(id)sender { |
| 153 [self openAll:[sender tag] withDisposition:NEW_WINDOW]; | 153 [self openAll:[sender tag] withDisposition:NEW_WINDOW]; |
| 154 } | 154 } |
| 155 | 155 |
| 156 - (IBAction)openAllBookmarksIncognitoWindow:(id)sender { | 156 - (IBAction)openAllBookmarksIncognitoWindow:(id)sender { |
| 157 [self openAll:[sender tag] withDisposition:OFF_THE_RECORD]; | 157 [self openAll:[sender tag] withDisposition:OFF_THE_RECORD]; |
| 158 } | 158 } |
| 159 | 159 |
| 160 @end // BookmarkMenuCocoaController | 160 @end // BookmarkMenuCocoaController |
| OLD | NEW |