| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 // the focus is passed to the RootView. | 392 // the focus is passed to the RootView. |
| 393 virtual views::RootView* GetContentsRootView() { return NULL; } | 393 virtual views::RootView* GetContentsRootView() { return NULL; } |
| 394 | 394 |
| 395 // Infobars ------------------------------------------------------------------ | 395 // Infobars ------------------------------------------------------------------ |
| 396 | 396 |
| 397 // Adds an InfoBar for the specified |delegate|. | 397 // Adds an InfoBar for the specified |delegate|. |
| 398 void AddInfoBar(InfoBarDelegate* delegate); | 398 void AddInfoBar(InfoBarDelegate* delegate); |
| 399 | 399 |
| 400 // Removes the InfoBar for the specified |delegate|. | 400 // Removes the InfoBar for the specified |delegate|. |
| 401 void RemoveInfoBar(InfoBarDelegate* delegate); | 401 void RemoveInfoBar(InfoBarDelegate* delegate); |
| 402 | 402 |
| 403 // Enumeration and access functions. | 403 // Enumeration and access functions. |
| 404 int infobar_delegate_count() const { return infobar_delegates_.size(); } | 404 int infobar_delegate_count() const { return infobar_delegates_.size(); } |
| 405 InfoBarDelegate* GetInfoBarDelegateAt(int index) { | 405 InfoBarDelegate* GetInfoBarDelegateAt(int index) { |
| 406 return infobar_delegates_.at(index); | 406 return infobar_delegates_.at(index); |
| 407 } | 407 } |
| 408 | 408 |
| 409 // Toolbars and such --------------------------------------------------------- | 409 // Toolbars and such --------------------------------------------------------- |
| 410 | 410 |
| 411 // Returns whether the bookmark bar should be visible. | 411 // Returns whether the bookmark bar should be visible. |
| 412 virtual bool IsBookmarkBarAlwaysVisible() { return false; } | 412 virtual bool IsBookmarkBarAlwaysVisible() { return false; } |
| 413 | 413 |
| 414 // Whether or not the shelf view is visible. | 414 // Whether or not the shelf view is visible. |
| 415 virtual void SetDownloadShelfVisible(bool visible); | 415 virtual void SetDownloadShelfVisible(bool visible); |
| 416 bool IsDownloadShelfVisible() { return shelf_visible_; } | 416 bool IsDownloadShelfVisible() { return shelf_visible_; } |
| 417 | 417 |
| 418 // Notify our delegate that some of our content has animated. | 418 // Notify our delegate that some of our content has animated. |
| 419 void ToolbarSizeChanged(bool is_animating); | 419 void ToolbarSizeChanged(bool is_animating); |
| 420 | 420 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 // Delegates for InfoBars associated with this TabContents. | 552 // Delegates for InfoBars associated with this TabContents. |
| 553 std::vector<InfoBarDelegate*> infobar_delegates_; | 553 std::vector<InfoBarDelegate*> infobar_delegates_; |
| 554 | 554 |
| 555 // See getter above. | 555 // See getter above. |
| 556 bool is_being_destroyed_; | 556 bool is_being_destroyed_; |
| 557 | 557 |
| 558 DISALLOW_COPY_AND_ASSIGN(TabContents); | 558 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 559 }; | 559 }; |
| 560 | 560 |
| 561 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 561 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |