Chromium Code Reviews| 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" |
| 11 #include "chrome/browser/translate/chrome_translate_client.h" | 11 #include "chrome/browser/translate/chrome_translate_client.h" |
| 12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" | 14 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" |
| 15 #include "chrome/browser/ui/host_desktop.h" | 15 #include "chrome/browser/ui/host_desktop.h" |
| 16 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" | 16 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
| 17 #include "components/content_settings/core/common/content_settings_types.h" | 17 #include "components/content_settings/core/common/content_settings_types.h" |
| 18 #include "components/translate/core/common/translate_errors.h" | 18 #include "components/translate/core/common/translate_errors.h" |
| 19 #include "ui/base/accelerators/accelerator.h" | |
| 19 #include "ui/base/base_window.h" | 20 #include "ui/base/base_window.h" |
| 20 #include "ui/base/window_open_disposition.h" | 21 #include "ui/base/window_open_disposition.h" |
| 21 #include "ui/gfx/native_widget_types.h" | 22 #include "ui/gfx/native_widget_types.h" |
| 22 | 23 |
| 23 class Browser; | 24 class Browser; |
| 24 class BrowserWindowTesting; | 25 class BrowserWindowTesting; |
| 25 class DownloadShelf; | 26 class DownloadShelf; |
| 26 class FindBar; | 27 class FindBar; |
| 27 class GURL; | 28 class GURL; |
| 28 class LocationBar; | 29 class LocationBar; |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 395 | 396 |
| 396 // Returns the height inset for RenderView when detached bookmark bar is | 397 // Returns the height inset for RenderView when detached bookmark bar is |
| 397 // shown. Invoked when a new RenderHostView is created for a non-NTP | 398 // shown. Invoked when a new RenderHostView is created for a non-NTP |
| 398 // navigation entry and the bookmark bar is detached. | 399 // navigation entry and the bookmark bar is detached. |
| 399 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; | 400 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() = 0; |
| 400 | 401 |
| 401 // Executes |command| registered by |extension|. | 402 // Executes |command| registered by |extension|. |
| 402 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, | 403 virtual void ExecuteExtensionCommand(const extensions::Extension* extension, |
| 403 const extensions::Command& command) = 0; | 404 const extensions::Command& command) = 0; |
| 404 | 405 |
| 406 // Returns if the given |accelerator| is registered by an extension. | |
|
Finnur
2014/09/10 10:15:16
nit: s/if/whether/
David Tseng
2014/09/10 21:19:07
Done.
| |
| 407 virtual bool IsExtensionCommandRegistered( | |
| 408 const ui::Accelerator& accelerator) = 0; | |
| 409 | |
| 405 protected: | 410 protected: |
| 406 friend class BrowserCloseManager; | 411 friend class BrowserCloseManager; |
| 407 friend class BrowserView; | 412 friend class BrowserView; |
| 408 virtual void DestroyBrowser() = 0; | 413 virtual void DestroyBrowser() = 0; |
| 409 }; | 414 }; |
| 410 | 415 |
| 411 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 416 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |