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

Side by Side Diff: chrome/browser/ui/views/infobars/infobar_container.h

Issue 6249010: Cleanup: de-inline a bunch of classes, rename and move "PluginInstaller" to "... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/accessible_pane_view.h" 9 #include "chrome/browser/ui/views/accessible_pane_view.h"
10 #include "chrome/common/notification_observer.h" 10 #include "chrome/common/notification_observer.h"
11 #include "chrome/common/notification_registrar.h" 11 #include "chrome/common/notification_registrar.h"
12 #include "views/view.h" 12 #include "views/view.h"
13 13
14 class BrowserView; 14 class BrowserView;
15 class InfoBarDelegate; 15 class InfoBarDelegate;
16 class TabContents; 16 class TabContents;
17 17
18 // A views::View subclass that contains a collection of InfoBars associated with 18 // A views::View subclass that contains a collection of InfoBars associated with
19 // a TabContents. 19 // a TabContents.
20 class InfoBarContainer : public AccessiblePaneView, 20 class InfoBarContainer : public AccessiblePaneView,
21 public NotificationObserver { 21 public NotificationObserver {
22 public: 22 public:
23 // Implement this interface when you want to receive notifications from the 23 // Implement this interface when you want to receive notifications from the
24 // InfoBarContainer 24 // InfoBarContainer
25 class Delegate { 25 class Delegate {
26 public: 26 public:
27 virtual ~Delegate() {} 27 virtual ~Delegate() {}
28 virtual void InfoBarSizeChanged(bool is_animating) = 0; 28 virtual void InfoBarContainerSizeChanged(bool is_animating) = 0;
29 }; 29 };
30 30
31 explicit InfoBarContainer(Delegate* delegate); 31 explicit InfoBarContainer(Delegate* delegate);
32 virtual ~InfoBarContainer(); 32 virtual ~InfoBarContainer();
33 33
34 // Changes the TabContents for which this container is showing InfoBars. Can 34 // Changes the TabContents for which this container is showing InfoBars. Can
35 // be NULL. 35 // be NULL.
36 void ChangeTabContents(TabContents* contents); 36 void ChangeTabContents(TabContents* contents);
37 37
38 // Called by child InfoBars as they animate. If |completed| is true, the 38 // Called by child InfoBars as they animate. If |completed| is true, the
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // The Delegate which receives notifications from the InfoBarContainer. 85 // The Delegate which receives notifications from the InfoBarContainer.
86 Delegate* delegate_; 86 Delegate* delegate_;
87 87
88 // The TabContents for which we are currently showing InfoBars. 88 // The TabContents for which we are currently showing InfoBars.
89 TabContents* tab_contents_; 89 TabContents* tab_contents_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer); 91 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer);
92 }; 92 };
93 93
94 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_ 94 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/infobars/infobar_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698