Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3387)

Unified Diff: chrome/browser/tab_contents/infobar_container.h

Issue 6989001: Misc. infobar stuff: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/infobar.cc ('k') | chrome/browser/tab_contents/infobar_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/infobar_container.h
===================================================================
--- chrome/browser/tab_contents/infobar_container.h (revision 84494)
+++ chrome/browser/tab_contents/infobar_container.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_
-#define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_
+#ifndef CHROME_BROWSER_TAB_CONTENTS_INFOBAR_CONTAINER_H_
+#define CHROME_BROWSER_TAB_CONTENTS_INFOBAR_CONTAINER_H_
#pragma once
#include <vector>
@@ -15,7 +15,7 @@
class InfoBar;
class InfoBarDelegate;
-class TabContents;
+class TabContentsWrapper;
// InfoBarContainer is a cross-platform base class to handle the visibility-
// related aspects of InfoBars. While InfoBars own themselves, the
@@ -46,10 +46,10 @@
explicit InfoBarContainer(Delegate* delegate);
virtual ~InfoBarContainer();
- // Changes the TabContents for which this container is showing infobars. This
- // will remove all current infobars from the container, add the infobars from
- // |contents|, and show them all. |contents| may be NULL.
- void ChangeTabContents(TabContents* contents);
+ // Changes the TabContentsWrapper for which this container is showing
+ // infobars. This will remove all current infobars from the container, add
+ // the infobars from |contents|, and show them all. |contents| may be NULL.
+ void ChangeTabContents(TabContentsWrapper* contents);
// Returns the amount by which to overlap the toolbar above, and, when
// |total_height| is non-NULL, set it to the height of the InfoBarContainer
@@ -72,9 +72,9 @@
// anything necessary to respond, e.g. re-layout.
void OnInfoBarStateChanged(bool is_animating);
- // Removes the specified InfoBarDelegate from the selected TabContents. This
- // will notify us back and cause us to close the InfoBar. This is called from
- // the InfoBar's close button handler.
+ // Removes the specified InfoBarDelegate from the selected TabContentsWrapper.
+ // This will notify us back and cause us to close the InfoBar. This is called
+ // from the InfoBar's close button handler.
void RemoveDelegate(InfoBarDelegate* delegate);
// Called by |infobar| to request that it be removed from the container, as it
@@ -104,8 +104,8 @@
const NotificationDetails& details) OVERRIDE;
// Removes an InfoBar for the specified delegate, in response to a
- // notification from the selected TabContents. The InfoBar's disappearance
- // will be animated if |use_animation| is true.
+ // notification from the selected TabContentsWrapper. The InfoBar's
+ // disappearance will be animated if |use_animation| is true.
void RemoveInfoBar(InfoBarDelegate* delegate, bool use_animation);
// Adds |infobar| to this container and calls Show() on it. |animate| is
@@ -123,7 +123,7 @@
NotificationRegistrar registrar_;
Delegate* delegate_;
- TabContents* tab_contents_;
+ TabContentsWrapper* tab_contents_;
InfoBars infobars_;
// Calculated in SetMaxTopArrowHeight().
@@ -132,4 +132,4 @@
DISALLOW_COPY_AND_ASSIGN(InfoBarContainer);
};
-#endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_
+#endif // CHROME_BROWSER_TAB_CONTENTS_INFOBAR_CONTAINER_H_
« no previous file with comments | « chrome/browser/tab_contents/infobar.cc ('k') | chrome/browser/tab_contents/infobar_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698