| 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 "chrome/browser/devtools/devtools_toggle_action.h" | 10 #include "chrome/browser/devtools/devtools_toggle_action.h" |
| 11 #include "chrome/browser/ui/host_desktop.h" | 11 #include "chrome/browser/ui/host_desktop.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 "content/public/common/page_zoom.h" | 13 #include "content/public/common/page_zoom.h" |
| 14 #include "ui/base/window_open_disposition.h" | 14 #include "ui/base/window_open_disposition.h" |
| 15 | 15 |
| 16 class Browser; | 16 class Browser; |
| 17 class CommandObserver; | 17 class CommandObserver; |
| 18 class GURL; | 18 class GURL; |
| 19 class Profile; | 19 class Profile; |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 class PageState; |
| 22 class WebContents; | 23 class WebContents; |
| 23 struct SSLStatus; | 24 struct SSLStatus; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace chrome { | 27 namespace chrome { |
| 27 | 28 |
| 28 // For all commands, where a tab is not specified, the active tab is assumed. | 29 // For all commands, where a tab is not specified, the active tab is assumed. |
| 29 | 30 |
| 30 bool IsCommandEnabled(Browser* browser, int command); | 31 bool IsCommandEnabled(Browser* browser, int command); |
| 31 bool SupportsCommand(Browser* browser, int command); | 32 bool SupportsCommand(Browser* browser, int command); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 void ClearCache(Browser* browser); | 146 void ClearCache(Browser* browser); |
| 146 bool IsDebuggerAttachedToCurrentTab(Browser* browser); | 147 bool IsDebuggerAttachedToCurrentTab(Browser* browser); |
| 147 | 148 |
| 148 // Opens a view-source tab for a given web contents. | 149 // Opens a view-source tab for a given web contents. |
| 149 void ViewSource(Browser* browser, content::WebContents* tab); | 150 void ViewSource(Browser* browser, content::WebContents* tab); |
| 150 | 151 |
| 151 // Opens a view-source tab for any frame within a given web contents. | 152 // Opens a view-source tab for any frame within a given web contents. |
| 152 void ViewSource(Browser* browser, | 153 void ViewSource(Browser* browser, |
| 153 content::WebContents* tab, | 154 content::WebContents* tab, |
| 154 const GURL& url, | 155 const GURL& url, |
| 155 const std::string& content_state); | 156 const content::PageState& page_state); |
| 156 | 157 |
| 157 void ViewSelectedSource(Browser* browser); | 158 void ViewSelectedSource(Browser* browser); |
| 158 bool CanViewSource(const Browser* browser); | 159 bool CanViewSource(const Browser* browser); |
| 159 | 160 |
| 160 void CreateApplicationShortcuts(Browser* browser); | 161 void CreateApplicationShortcuts(Browser* browser); |
| 161 bool CanCreateApplicationShortcuts(const Browser* browser); | 162 bool CanCreateApplicationShortcuts(const Browser* browser); |
| 162 | 163 |
| 163 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); | 164 void ConvertTabToAppWindow(Browser* browser, content::WebContents* contents); |
| 164 | 165 |
| 165 } // namespace chrome | 166 } // namespace chrome |
| 166 | 167 |
| 167 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ | 168 #endif // CHROME_BROWSER_UI_BROWSER_COMMANDS_H_ |
| OLD | NEW |