OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |