Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2218)

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller.h

Issue 489183005: Make a ShowExtensionActionPopup function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Peter's Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
7 7
8 // A class acting as the Objective-C controller for the Browser 8 // A class acting as the Objective-C controller for the Browser
9 // object. Handles interactions between Cocoa and the cross-platform 9 // object. Handles interactions between Cocoa and the cross-platform
10 // code. Each window has a single toolbar and, by virtue of being a 10 // code. Each window has a single toolbar and, by virtue of being a
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 // Called when the Add Search Engine dialog is closed. 350 // Called when the Add Search Engine dialog is closed.
351 - (void)sheetDidEnd:(NSWindow*)sheet 351 - (void)sheetDidEnd:(NSWindow*)sheet
352 returnCode:(NSInteger)code 352 returnCode:(NSInteger)code
353 context:(void*)context; 353 context:(void*)context;
354 354
355 // Executes the command registered by the extension that has the given id. 355 // Executes the command registered by the extension that has the given id.
356 - (void)executeExtensionCommand:(const std::string&)extension_id 356 - (void)executeExtensionCommand:(const std::string&)extension_id
357 command:(const extensions::Command&)command; 357 command:(const extensions::Command&)command;
358 358
359 // Activates the page action for the extension that has the given id.
360 - (void)activatePageAction:(const std::string&)extension_id;
361
362 // Activates the browser action for the extension that has the given id.
363 - (void)activateBrowserAction:(const std::string&)extension_id;
364
365 @end // @interface BrowserWindowController 359 @end // @interface BrowserWindowController
366 360
367 361
368 // Methods having to do with the window type (normal/popup/app, and whether the 362 // Methods having to do with the window type (normal/popup/app, and whether the
369 // window has various features; fullscreen and presentation mode methods are 363 // window has various features; fullscreen and presentation mode methods are
370 // separate). 364 // separate).
371 @interface BrowserWindowController(WindowType) 365 @interface BrowserWindowController(WindowType)
372 366
373 // Determines whether this controller's window supports a given feature (i.e., 367 // Determines whether this controller's window supports a given feature (i.e.,
374 // whether a given feature is or can be shown in the window). 368 // whether a given feature is or can be shown in the window).
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 // positioned relative to. 516 // positioned relative to.
523 - (NSRect)omniboxPopupAnchorRect; 517 - (NSRect)omniboxPopupAnchorRect;
524 518
525 // Force a layout of info bars. 519 // Force a layout of info bars.
526 - (void)layoutInfoBars; 520 - (void)layoutInfoBars;
527 521
528 @end // @interface BrowserWindowController (TestingAPI) 522 @end // @interface BrowserWindowController (TestingAPI)
529 523
530 524
531 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 525 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698