| 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 394 |
| 395 // TabStripModel pass-thrus ///////////////////////////////////////////////// | 395 // TabStripModel pass-thrus ///////////////////////////////////////////////// |
| 396 | 396 |
| 397 TabStripModel* tab_strip_model() const { return tab_strip_model_.get(); } | 397 TabStripModel* tab_strip_model() const { return tab_strip_model_.get(); } |
| 398 | 398 |
| 399 int tab_count() const; | 399 int tab_count() const; |
| 400 int active_index() const; | 400 int active_index() const; |
| 401 int GetIndexOfController( | 401 int GetIndexOfController( |
| 402 const content::NavigationController* controller) const; | 402 const content::NavigationController* controller) const; |
| 403 | 403 |
| 404 TabContents* GetSelectedTabContentsWrapper() const; // DEPRECATED | |
| 405 TabContents* GetActiveTabContents() const; | 404 TabContents* GetActiveTabContents() const; |
| 406 // A convenient version of the above which returns the TabContents's | 405 // A convenient version of the above which returns the TabContents's |
| 407 // WebContents. | 406 // WebContents. |
| 408 content::WebContents* GetSelectedWebContents() const; // DEPRECATED | 407 content::WebContents* GetSelectedWebContents() const; // DEPRECATED |
| 409 content::WebContents* GetActiveWebContents() const; | 408 content::WebContents* GetActiveWebContents() const; |
| 410 TabContents* GetTabContentsWrapperAt(int index) const; // DEPRECATED | |
| 411 TabContents* GetTabContentsAt(int index) const; | 409 TabContents* GetTabContentsAt(int index) const; |
| 412 // A convenient version of the above which returns the TabContents's | 410 // A convenient version of the above which returns the TabContents's |
| 413 // WebContents. | 411 // WebContents. |
| 414 content::WebContents* GetWebContentsAt(int index) const; | 412 content::WebContents* GetWebContentsAt(int index) const; |
| 415 void ActivateTabAt(int index, bool user_gesture); | 413 void ActivateTabAt(int index, bool user_gesture); |
| 416 bool IsTabPinned(int index) const; | 414 bool IsTabPinned(int index) const; |
| 417 bool IsTabDiscarded(int index) const; | 415 bool IsTabDiscarded(int index) const; |
| 418 void CloseAllTabs(); | 416 void CloseAllTabs(); |
| 419 | 417 |
| 420 // Tab adding/showing functions ///////////////////////////////////////////// | 418 // Tab adding/showing functions ///////////////////////////////////////////// |
| (...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1445 bool window_has_shown_; | 1443 bool window_has_shown_; |
| 1446 | 1444 |
| 1447 // Currently open color chooser. Non-NULL after OpenColorChooser is called and | 1445 // Currently open color chooser. Non-NULL after OpenColorChooser is called and |
| 1448 // before DidEndColorChooser is called. | 1446 // before DidEndColorChooser is called. |
| 1449 scoped_ptr<content::ColorChooser> color_chooser_; | 1447 scoped_ptr<content::ColorChooser> color_chooser_; |
| 1450 | 1448 |
| 1451 DISALLOW_COPY_AND_ASSIGN(Browser); | 1449 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1452 }; | 1450 }; |
| 1453 | 1451 |
| 1454 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1452 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |