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" | 13 #include "components/security_state/security_state_model.h" |
14 #include "content/public/common/page_zoom.h" | 14 #include "content/public/common/page_zoom.h" |
| 15 #include "printing/features/features.h" |
15 #include "ui/base/window_open_disposition.h" | 16 #include "ui/base/window_open_disposition.h" |
16 | 17 |
17 class Browser; | 18 class Browser; |
18 class CommandObserver; | 19 class CommandObserver; |
19 class GURL; | 20 class GURL; |
20 class Profile; | 21 class Profile; |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 class PageState; | 24 class PageState; |
24 class WebContents; | 25 class WebContents; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void SavePage(Browser* browser); | 103 void SavePage(Browser* browser); |
103 bool CanSavePage(const Browser* browser); | 104 bool CanSavePage(const Browser* browser); |
104 void ShowFindBar(Browser* browser); | 105 void ShowFindBar(Browser* browser); |
105 void ShowWebsiteSettings( | 106 void ShowWebsiteSettings( |
106 Browser* browser, | 107 Browser* browser, |
107 content::WebContents* web_contents, | 108 content::WebContents* web_contents, |
108 const GURL& url, | 109 const GURL& url, |
109 const security_state::SecurityStateModel::SecurityInfo& security_info); | 110 const security_state::SecurityStateModel::SecurityInfo& security_info); |
110 void Print(Browser* browser); | 111 void Print(Browser* browser); |
111 bool CanPrint(Browser* browser); | 112 bool CanPrint(Browser* browser); |
112 #if defined(ENABLE_BASIC_PRINTING) | 113 #if BUILDFLAG(ENABLE_BASIC_PRINTING) |
113 void BasicPrint(Browser* browser); | 114 void BasicPrint(Browser* browser); |
114 bool CanBasicPrint(Browser* browser); | 115 bool CanBasicPrint(Browser* browser); |
115 #endif // ENABLE_BASIC_PRINTING | 116 #endif // ENABLE_BASIC_PRINTING |
116 bool CanRouteMedia(Browser* browser); | 117 bool CanRouteMedia(Browser* browser); |
117 void RouteMedia(Browser* browser); | 118 void RouteMedia(Browser* browser); |
118 void EmailPageLocation(Browser* browser); | 119 void EmailPageLocation(Browser* browser); |
119 bool CanEmailPageLocation(const Browser* browser); | 120 bool CanEmailPageLocation(const Browser* browser); |
120 void CutCopyPaste(Browser* browser, int command_id); | 121 void CutCopyPaste(Browser* browser, int command_id); |
121 void Find(Browser* browser); | 122 void Find(Browser* browser); |
122 void FindNext(Browser* browser); | 123 void FindNext(Browser* browser); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 void CreateApplicationShortcuts(Browser* browser); | 164 void CreateApplicationShortcuts(Browser* browser); |
164 void CreateBookmarkAppFromCurrentWebContents(Browser* browser); | 165 void CreateBookmarkAppFromCurrentWebContents(Browser* browser); |
165 bool CanCreateApplicationShortcuts(const Browser* browser); | 166 bool CanCreateApplicationShortcuts(const Browser* browser); |
166 bool CanCreateBookmarkApp(const Browser* browser); | 167 bool CanCreateBookmarkApp(const Browser* browser); |
167 | 168 |
168 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); | 169 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); |
169 | 170 |
170 } // namespace chrome | 171 } // namespace chrome |
171 | 172 |
172 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ | 173 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ |
OLD | NEW |