[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / history_menu_cocoa_controller.h
blobd6fd3c16a9bc61ad09a1ddfbc25e695d4894cc97
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
3 // found in the LICENSE file.
5 // Controller (MVC) for the history menu. All history menu item commands get
6 // directed here. This class only responds to menu events, but the actual
7 // creation and maintenance of the menu happens in the Bridge.
9 #ifndef CHROME_BROWSER_UI_COCOA_HISTORY_MENU_COCOA_CONTROLLER_H_
10 #define CHROME_BROWSER_UI_COCOA_HISTORY_MENU_COCOA_CONTROLLER_H_
12 #import <Cocoa/Cocoa.h>
13 #import "chrome/browser/ui/cocoa/history_menu_bridge.h"
15 @interface HistoryMenuCocoaController : NSObject {
16 @private
17 HistoryMenuBridge* bridge_; // weak; owns us
20 - (id)initWithBridge:(HistoryMenuBridge*)bridge;
22 // Called by any history menu item.
23 - (IBAction)openHistoryMenuItem:(id)sender;
25 @end // HistoryMenuCocoaController
27 @interface HistoryMenuCocoaController (ExposedForUnitTests)
28 - (void)openURLForItem:(const HistoryMenuBridge::HistoryItem*)node;
29 @end // HistoryMenuCocoaController (ExposedForUnitTests)
31 #endif // CHROME_BROWSER_UI_COCOA_HISTORY_MENU_COCOA_CONTROLLER_H_