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

Side by Side Diff: chrome/browser/ui/browser_window.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
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/lifetime/browser_close_manager.h" 9 #include "chrome/browser/lifetime/browser_close_manager.h"
10 #include "chrome/browser/signin/signin_header_helper.h" 10 #include "chrome/browser/signin/signin_header_helper.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 395
396 // Returns the height inset for RenderView when detached bookmark bar is 396 // Returns the height inset for RenderView when detached bookmark bar is
397 // shown. Invoked when a new RenderHostView is created for a non-NTP 397 // shown. Invoked when a new RenderHostView is created for a non-NTP
398 // navigation entry and the bookmark bar is detached. 398 // navigation entry and the bookmark bar is detached.
399 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; 399 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0;
400 400
401 // Executes |command| registered by |extension|. 401 // Executes |command| registered by |extension|.
402 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, 402 virtual void ExecuteExtensionCommand(const extensions::Extension* extension,
403 const extensions::Command& command) = 0; 403 const extensions::Command& command) = 0;
404 404
405 // Shows the page action for the extension.
406 virtual void ShowPageActionPopup(const extensions::Extension* extension) = 0;
407
408 // Shows the browser action for the extension. NOTE(wittman): This function
409 // grants tab permissions to the browser action popup, so it should only be
410 // invoked due to user action, not due to invocation from an extensions API.
411 virtual void ShowBrowserActionPopup(
412 const extensions::Extension* extension) = 0;
413
414 protected: 405 protected:
415 friend class BrowserCloseManager; 406 friend class BrowserCloseManager;
416 friend class BrowserView; 407 friend class BrowserView;
417 virtual void DestroyBrowser() = 0; 408 virtual void DestroyBrowser() = 0;
418 }; 409 };
419 410
420 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 411 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698