Chromium Code Reviews| 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 394 bool FocusLocationBarByDefault(); | 394 bool FocusLocationBarByDefault(); |
| 395 | 395 |
| 396 // Infobars ------------------------------------------------------------------ | 396 // Infobars ------------------------------------------------------------------ |
| 397 | 397 |
| 398 // Adds an InfoBar for the specified |delegate|. | 398 // Adds an InfoBar for the specified |delegate|. |
| 399 void AddInfoBar(InfoBarDelegate* delegate); | 399 void AddInfoBar(InfoBarDelegate* delegate); |
| 400 | 400 |
| 401 // Removes the InfoBar for the specified |delegate|. | 401 // Removes the InfoBar for the specified |delegate|. |
| 402 void RemoveInfoBar(InfoBarDelegate* delegate); | 402 void RemoveInfoBar(InfoBarDelegate* delegate); |
| 403 | 403 |
| 404 // Replaces one infobar with another, without any aniation in between. | |
|
Glen Murphy
2009/08/06 15:54:49
spelling: animation
| |
| 405 void ReplaceInfoBar(InfoBarDelegate* old_delegate, InfoBarDelegate* new_delega te); | |
|
Glen Murphy
2009/08/06 15:54:49
80col
| |
| 406 | |
| 404 // Enumeration and access functions. | 407 // Enumeration and access functions. |
| 405 int infobar_delegate_count() const { return infobar_delegates_.size(); } | 408 int infobar_delegate_count() const { return infobar_delegates_.size(); } |
| 406 InfoBarDelegate* GetInfoBarDelegateAt(int index) { | 409 InfoBarDelegate* GetInfoBarDelegateAt(int index) { |
| 407 return infobar_delegates_.at(index); | 410 return infobar_delegates_.at(index); |
| 408 } | 411 } |
| 409 | 412 |
| 410 // Toolbars and such --------------------------------------------------------- | 413 // Toolbars and such --------------------------------------------------------- |
| 411 | 414 |
| 412 // Returns whether the bookmark bar should be visible. | 415 // Returns whether the bookmark bar should be visible. |
| 413 virtual bool IsBookmarkBarAlwaysVisible(); | 416 virtual bool IsBookmarkBarAlwaysVisible(); |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1096 | 1099 |
| 1097 // Settings that get passed to the renderer process. | 1100 // Settings that get passed to the renderer process. |
| 1098 RendererPreferences renderer_preferences_; | 1101 RendererPreferences renderer_preferences_; |
| 1099 | 1102 |
| 1100 // --------------------------------------------------------------------------- | 1103 // --------------------------------------------------------------------------- |
| 1101 | 1104 |
| 1102 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1105 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1103 }; | 1106 }; |
| 1104 | 1107 |
| 1105 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1108 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |