| OLD | NEW |
| 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_BROWSER_COMMANDS_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "chrome/browser/devtools/devtools_toggle_action.h" | 11 #include "chrome/browser/devtools/devtools_toggle_action.h" |
| 12 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" |
| 13 #include "components/security_state/security_state_model.h" | |
| 14 #include "content/public/common/page_zoom.h" | 13 #include "content/public/common/page_zoom.h" |
| 15 #include "ui/base/window_open_disposition.h" | 14 #include "ui/base/window_open_disposition.h" |
| 16 | 15 |
| 17 class Browser; | 16 class Browser; |
| 18 class CommandObserver; | 17 class CommandObserver; |
| 19 class GURL; | 18 class GURL; |
| 20 class Profile; | 19 class Profile; |
| 21 | 20 |
| 22 namespace content { | 21 namespace content { |
| 23 class PageState; | 22 class PageState; |
| 24 class WebContents; | 23 class WebContents; |
| 25 } | 24 } |
| 26 | 25 |
| 26 namespace security_state { |
| 27 struct SecurityInfo; |
| 28 } // namespace security_state |
| 29 |
| 27 namespace chrome { | 30 namespace chrome { |
| 28 | 31 |
| 29 // For all commands, where a tab is not specified, the active tab is assumed. | 32 // For all commands, where a tab is not specified, the active tab is assumed. |
| 30 | 33 |
| 31 bool IsCommandEnabled(Browser* browser, int command); | 34 bool IsCommandEnabled(Browser* browser, int command); |
| 32 bool SupportsCommand(Browser* browser, int command); | 35 bool SupportsCommand(Browser* browser, int command); |
| 33 bool ExecuteCommand(Browser* browser, int command); | 36 bool ExecuteCommand(Browser* browser, int command); |
| 34 bool ExecuteCommandWithDisposition(Browser* browser, | 37 bool ExecuteCommandWithDisposition(Browser* browser, |
| 35 int command, | 38 int command, |
| 36 WindowOpenDisposition disposition); | 39 WindowOpenDisposition disposition); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void BookmarkCurrentPageAllowingExtensionOverrides(Browser* browser); | 98 void BookmarkCurrentPageAllowingExtensionOverrides(Browser* browser); |
| 96 bool CanBookmarkCurrentPage(const Browser* browser); | 99 bool CanBookmarkCurrentPage(const Browser* browser); |
| 97 void BookmarkAllTabs(Browser* browser); | 100 void BookmarkAllTabs(Browser* browser); |
| 98 bool CanBookmarkAllTabs(const Browser* browser); | 101 bool CanBookmarkAllTabs(const Browser* browser); |
| 99 void SaveCreditCard(Browser* browser); | 102 void SaveCreditCard(Browser* browser); |
| 100 void Translate(Browser* browser); | 103 void Translate(Browser* browser); |
| 101 void ManagePasswordsForPage(Browser* browser); | 104 void ManagePasswordsForPage(Browser* browser); |
| 102 void SavePage(Browser* browser); | 105 void SavePage(Browser* browser); |
| 103 bool CanSavePage(const Browser* browser); | 106 bool CanSavePage(const Browser* browser); |
| 104 void ShowFindBar(Browser* browser); | 107 void ShowFindBar(Browser* browser); |
| 105 void ShowWebsiteSettings( | 108 void ShowWebsiteSettings(Browser* browser, |
| 106 Browser* browser, | 109 content::WebContents* web_contents, |
| 107 content::WebContents* web_contents, | 110 const GURL& url, |
| 108 const GURL& url, | 111 const security_state::SecurityInfo& security_info); |
| 109 const security_state::SecurityStateModel::SecurityInfo& security_info); | |
| 110 void Print(Browser* browser); | 112 void Print(Browser* browser); |
| 111 bool CanPrint(Browser* browser); | 113 bool CanPrint(Browser* browser); |
| 112 #if defined(ENABLE_BASIC_PRINTING) | 114 #if defined(ENABLE_BASIC_PRINTING) |
| 113 void BasicPrint(Browser* browser); | 115 void BasicPrint(Browser* browser); |
| 114 bool CanBasicPrint(Browser* browser); | 116 bool CanBasicPrint(Browser* browser); |
| 115 #endif // ENABLE_BASIC_PRINTING | 117 #endif // ENABLE_BASIC_PRINTING |
| 116 bool CanRouteMedia(Browser* browser); | 118 bool CanRouteMedia(Browser* browser); |
| 117 void RouteMedia(Browser* browser); | 119 void RouteMedia(Browser* browser); |
| 118 void EmailPageLocation(Browser* browser); | 120 void EmailPageLocation(Browser* browser); |
| 119 bool CanEmailPageLocation(const Browser* browser); | 121 bool CanEmailPageLocation(const Browser* browser); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 void CreateApplicationShortcuts(Browser* browser); | 165 void CreateApplicationShortcuts(Browser* browser); |
| 164 void CreateBookmarkAppFromCurrentWebContents(Browser* browser); | 166 void CreateBookmarkAppFromCurrentWebContents(Browser* browser); |
| 165 bool CanCreateApplicationShortcuts(const Browser* browser); | 167 bool CanCreateApplicationShortcuts(const Browser* browser); |
| 166 bool CanCreateBookmarkApp(const Browser* browser); | 168 bool CanCreateBookmarkApp(const Browser* browser); |
| 167 | 169 |
| 168 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); | 170 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); |
| 169 | 171 |
| 170 } // namespace chrome | 172 } // namespace chrome |
| 171 | 173 |
| 172 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ | 174 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ |
| OLD | NEW |