| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 bool FocusLocationBarByDefault(); | 392 bool FocusLocationBarByDefault(); |
| 393 | 393 |
| 394 // Infobars ------------------------------------------------------------------ | 394 // Infobars ------------------------------------------------------------------ |
| 395 | 395 |
| 396 // Adds an InfoBar for the specified |delegate|. | 396 // Adds an InfoBar for the specified |delegate|. |
| 397 void AddInfoBar(InfoBarDelegate* delegate); | 397 void AddInfoBar(InfoBarDelegate* delegate); |
| 398 | 398 |
| 399 // Removes the InfoBar for the specified |delegate|. | 399 // Removes the InfoBar for the specified |delegate|. |
| 400 void RemoveInfoBar(InfoBarDelegate* delegate); | 400 void RemoveInfoBar(InfoBarDelegate* delegate); |
| 401 | 401 |
| 402 // Replaces one infobar with another, without any animation in between. |
| 403 void ReplaceInfoBar(InfoBarDelegate* old_delegate, |
| 404 InfoBarDelegate* new_delegate); |
| 405 |
| 402 // Enumeration and access functions. | 406 // Enumeration and access functions. |
| 403 int infobar_delegate_count() const { return infobar_delegates_.size(); } | 407 int infobar_delegate_count() const { return infobar_delegates_.size(); } |
| 404 InfoBarDelegate* GetInfoBarDelegateAt(int index) { | 408 InfoBarDelegate* GetInfoBarDelegateAt(int index) { |
| 405 return infobar_delegates_.at(index); | 409 return infobar_delegates_.at(index); |
| 406 } | 410 } |
| 407 | 411 |
| 408 // Toolbars and such --------------------------------------------------------- | 412 // Toolbars and such --------------------------------------------------------- |
| 409 | 413 |
| 410 // Returns whether the bookmark bar should be visible. | 414 // Returns whether the bookmark bar should be visible. |
| 411 virtual bool IsBookmarkBarAlwaysVisible(); | 415 virtual bool IsBookmarkBarAlwaysVisible(); |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 // True if the user has decided to block future javascript messages. This is | 1086 // True if the user has decided to block future javascript messages. This is |
| 1083 // reset on navigations to false on navigations. | 1087 // reset on navigations to false on navigations. |
| 1084 bool suppress_javascript_messages_; | 1088 bool suppress_javascript_messages_; |
| 1085 | 1089 |
| 1086 // --------------------------------------------------------------------------- | 1090 // --------------------------------------------------------------------------- |
| 1087 | 1091 |
| 1088 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1092 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1089 }; | 1093 }; |
| 1090 | 1094 |
| 1091 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1095 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |