| 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_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 251 |
| 252 // Returns true if a FindBarController exists for this browser. | 252 // Returns true if a FindBarController exists for this browser. |
| 253 bool HasFindBarController() const; | 253 bool HasFindBarController() const; |
| 254 | 254 |
| 255 // Returns the state of the bookmark bar. | 255 // Returns the state of the bookmark bar. |
| 256 BookmarkBar::State bookmark_bar_state() const { return bookmark_bar_state_; } | 256 BookmarkBar::State bookmark_bar_state() const { return bookmark_bar_state_; } |
| 257 | 257 |
| 258 // Browser Creation Helpers ///////////////////////////////////////////////// | 258 // Browser Creation Helpers ///////////////////////////////////////////////// |
| 259 | 259 |
| 260 // Opens a new window with the default blank tab. | 260 // Opens a new window with the default blank tab. |
| 261 static void NewEmptyWindow(Profile* profile); | 261 static Browser* NewEmptyWindow(Profile* profile); |
| 262 | 262 |
| 263 // Opens a new window with the default blank tab. This bypasses metrics and | 263 // Opens a new window with the default blank tab. This bypasses metrics and |
| 264 // various internal bookkeeping; NewEmptyWindow (above) is preferred. | 264 // various internal bookkeeping; NewEmptyWindow (above) is preferred. |
| 265 static void OpenEmptyWindow(Profile* profile); | 265 static Browser* OpenEmptyWindow(Profile* profile); |
| 266 | 266 |
| 267 // Opens a new window with the tabs from |profile|'s TabRestoreService. | 267 // Opens a new window with the tabs from |profile|'s TabRestoreService. |
| 268 static void OpenWindowWithRestoredTabs(Profile* profile); | 268 static void OpenWindowWithRestoredTabs(Profile* profile); |
| 269 | 269 |
| 270 // Opens the specified URL in a new browser window in an incognito session. | 270 // Opens the specified URL in a new browser window in an incognito session. |
| 271 // If there is already an existing active incognito session for the specified | 271 // If there is already an existing active incognito session for the specified |
| 272 // |profile|, that session is re-used. | 272 // |profile|, that session is re-used. |
| 273 static void OpenURLOffTheRecord(Profile* profile, const GURL& url); | 273 static void OpenURLOffTheRecord(Profile* profile, const GURL& url); |
| 274 | 274 |
| 275 // Open |extension| in |container|, using |disposition| if container type is | 275 // Open |extension| in |container|, using |disposition| if container type is |
| (...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1471 | 1471 |
| 1472 scoped_ptr<ExtensionWindowController> extension_window_controller_; | 1472 scoped_ptr<ExtensionWindowController> extension_window_controller_; |
| 1473 | 1473 |
| 1474 // True if the browser window has been shown at least once. | 1474 // True if the browser window has been shown at least once. |
| 1475 bool window_has_shown_; | 1475 bool window_has_shown_; |
| 1476 | 1476 |
| 1477 DISALLOW_COPY_AND_ASSIGN(Browser); | 1477 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1478 }; | 1478 }; |
| 1479 | 1479 |
| 1480 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1480 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |