Chromium Code Reviews| 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" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 void ReloadBypassingCache(Browser* browser, WindowOpenDisposition disposition); | 66 void ReloadBypassingCache(Browser* browser, WindowOpenDisposition disposition); |
| 67 bool CanReload(const Browser* browser); | 67 bool CanReload(const Browser* browser); |
| 68 void Home(Browser* browser, WindowOpenDisposition disposition); | 68 void Home(Browser* browser, WindowOpenDisposition disposition); |
| 69 void OpenCurrentURL(Browser* browser); | 69 void OpenCurrentURL(Browser* browser); |
| 70 void Stop(Browser* browser); | 70 void Stop(Browser* browser); |
| 71 void NewWindow(Browser* browser); | 71 void NewWindow(Browser* browser); |
| 72 void NewIncognitoWindow(Browser* browser); | 72 void NewIncognitoWindow(Browser* browser); |
| 73 void CloseWindow(Browser* browser); | 73 void CloseWindow(Browser* browser); |
| 74 void NewTab(Browser* browser); | 74 void NewTab(Browser* browser); |
| 75 void CloseTab(Browser* browser); | 75 void CloseTab(Browser* browser); |
| 76 int GetZoomPercent(content::WebContents* contents); | |
|
Tom (Use chromium acct)
2016/04/14 19:19:36
Do these four functions that deal with WebContents
Peter Kasting
2016/04/15 00:40:36
I don't think so, at least not for GetZoomPercent(
| |
| 76 bool CanZoomIn(content::WebContents* contents); | 77 bool CanZoomIn(content::WebContents* contents); |
| 77 bool CanZoomOut(content::WebContents* contents); | 78 bool CanZoomOut(content::WebContents* contents); |
| 78 bool CanResetZoom(content::WebContents* contents); | 79 bool CanResetZoom(content::WebContents* contents); |
| 79 void RestoreTab(Browser* browser); | 80 void RestoreTab(Browser* browser); |
| 80 TabStripModelDelegate::RestoreTabType GetRestoreTabType( | 81 TabStripModelDelegate::RestoreTabType GetRestoreTabType( |
| 81 const Browser* browser); | 82 const Browser* browser); |
| 82 void SelectNextTab(Browser* browser); | 83 void SelectNextTab(Browser* browser); |
| 83 void SelectPreviousTab(Browser* browser); | 84 void SelectPreviousTab(Browser* browser); |
| 84 void MoveTabNext(Browser* browser); | 85 void MoveTabNext(Browser* browser); |
| 85 void MoveTabPrevious(Browser* browser); | 86 void MoveTabPrevious(Browser* browser); |
| (...skipping 77 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 |