| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_H_ |
| 6 #define CHROME_BROWSER_BROWSER_H_ | 6 #define CHROME_BROWSER_BROWSER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 // already visible in this browser, it becomes selected. Otherwise a new tab | 412 // already visible in this browser, it becomes selected. Otherwise a new tab |
| 413 // is created. | 413 // is created. |
| 414 void ShowSingletonTab(const GURL& url); | 414 void ShowSingletonTab(const GURL& url); |
| 415 | 415 |
| 416 // Update commands whose state depends on whether the window is in fullscreen | 416 // Update commands whose state depends on whether the window is in fullscreen |
| 417 // mode. This is a public function because on Linux, fullscreen mode is an | 417 // mode. This is a public function because on Linux, fullscreen mode is an |
| 418 // async call to X. Once we get the fullscreen callback, the browser window | 418 // async call to X. Once we get the fullscreen callback, the browser window |
| 419 // will call this method. | 419 // will call this method. |
| 420 void UpdateCommandsForFullscreenMode(bool is_fullscreen); | 420 void UpdateCommandsForFullscreenMode(bool is_fullscreen); |
| 421 | 421 |
| 422 // Opens the apps panel as a result of a new tab creation, if the browser is |
| 423 // configured in that mode. Returns true if the apps panel was opened, false |
| 424 // otherwise. |
| 425 bool OpenAppsPanelAsNewTab(); |
| 426 |
| 422 // Assorted browser commands //////////////////////////////////////////////// | 427 // Assorted browser commands //////////////////////////////////////////////// |
| 423 | 428 |
| 424 // NOTE: Within each of the following sections, the IDs are ordered roughly by | 429 // NOTE: Within each of the following sections, the IDs are ordered roughly by |
| 425 // how they appear in the GUI/menus (left to right, top to bottom, etc.). | 430 // how they appear in the GUI/menus (left to right, top to bottom, etc.). |
| 426 | 431 |
| 427 // Navigation commands | 432 // Navigation commands |
| 428 void GoBack(WindowOpenDisposition disposition); | 433 void GoBack(WindowOpenDisposition disposition); |
| 429 void GoForward(WindowOpenDisposition disposition); | 434 void GoForward(WindowOpenDisposition disposition); |
| 430 void Reload(); | 435 void Reload(); |
| 431 void ReloadIgnoringCache(); // AKA shift-reload. | 436 void ReloadIgnoringCache(); // AKA shift-reload. |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 // The extension app associated with this window, if any. | 1031 // The extension app associated with this window, if any. |
| 1027 Extension* extension_app_; | 1032 Extension* extension_app_; |
| 1028 | 1033 |
| 1029 // Tracks the display mode of the tabstrip. | 1034 // Tracks the display mode of the tabstrip. |
| 1030 mutable BooleanPrefMember use_vertical_tabs_; | 1035 mutable BooleanPrefMember use_vertical_tabs_; |
| 1031 | 1036 |
| 1032 DISALLOW_COPY_AND_ASSIGN(Browser); | 1037 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1033 }; | 1038 }; |
| 1034 | 1039 |
| 1035 #endif // CHROME_BROWSER_BROWSER_H_ | 1040 #endif // CHROME_BROWSER_BROWSER_H_ |
| OLD | NEW |