| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/toolbar/back_forward_menu_controller.h" | 5 #import "chrome/browser/ui/cocoa/toolbar/back_forward_menu_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #import "chrome/browser/ui/cocoa/event_utils.h" | 10 #import "chrome/browser/ui/cocoa/event_utils.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 atIndex:(menuID + 1)]; | 87 atIndex:(menuID + 1)]; |
| 88 } | 88 } |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 | 91 |
| 92 // Action methods: | 92 // Action methods: |
| 93 | 93 |
| 94 - (void)executeMenuItem:(id)sender { | 94 - (void)executeMenuItem:(id)sender { |
| 95 DCHECK([sender isKindOfClass:[NSMenuItem class]]); | 95 DCHECK([sender isKindOfClass:[NSMenuItem class]]); |
| 96 int menuID = [sender tag]; | 96 int menuID = [sender tag]; |
| 97 model_->ActivatedAtWithDisposition( | 97 model_->ActivatedAtWithFlags( |
| 98 menuID, | 98 menuID, |
| 99 event_utils::WindowOpenDispositionFromNSEvent([NSApp currentEvent])); | 99 event_utils::WindowOpenDispositionFromNSEvent([NSApp currentEvent])); |
| 100 } | 100 } |
| 101 | 101 |
| 102 @end // @implementation BackForwardMenuController | 102 @end // @implementation BackForwardMenuController |
| OLD | NEW |