Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package


// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Controller (MVC) for the history menu. All history menu item commands get
// directed here. This class only responds to menu events, but the actual
// creation and maintenance of the menu happens in the Bridge.


#import <Cocoa/Cocoa.h>
#import "chrome/browser/cocoa/history_menu_bridge.h"

@interface HistoryMenuCocoaController : NSObject {
  HistoryMenuBridge* bridge_;  // weak; owns us

- (id)initWithBridge:(HistoryMenuBridge*)bridge;

// Called by any history menu item.
- (IBAction)openHistoryMenuItem:(id)sender;

@end  // HistoryMenuCocoaController

@interface HistoryMenuCocoaController (ExposedForUnitTests)
- (const HistoryMenuBridge::HistoryItem*)itemForTag:(NSInteger)tag;
- (void)openURLForItem:(const HistoryMenuBridge::HistoryItem*)node;
@end  // HistoryMenuCocoaController (ExposedForUnitTests)


Generated by  Doxygen 1.6.0   Back to index