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

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

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 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_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_
7 7
8 #include "chrome/browser/infobars/infobar_container.h" 8 #include "components/infobars/core/infobar_container.h"
9 #include "ui/views/accessible_pane_view.h" 9 #include "ui/views/accessible_pane_view.h"
10 10
11 // The views-specific implementation of InfoBarContainer. 11 // The views-specific implementation of InfoBarContainer.
12 class InfoBarContainerView : public views::AccessiblePaneView, 12 class InfoBarContainerView : public views::AccessiblePaneView,
13 public InfoBarContainer { 13 public infobars::InfoBarContainer {
14 public: 14 public:
15 static const char kViewClassName[]; 15 static const char kViewClassName[];
16 16
17 explicit InfoBarContainerView(Delegate* delegate); 17 explicit InfoBarContainerView(Delegate* delegate);
18 virtual ~InfoBarContainerView(); 18 virtual ~InfoBarContainerView();
19 19
20 private: 20 private:
21 // AccessiblePaneView: 21 // AccessiblePaneView:
22 virtual gfx::Size GetPreferredSize() OVERRIDE; 22 virtual gfx::Size GetPreferredSize() OVERRIDE;
23 virtual const char* GetClassName() const OVERRIDE; 23 virtual const char* GetClassName() const OVERRIDE;
24 virtual void Layout() OVERRIDE; 24 virtual void Layout() OVERRIDE;
25 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 25 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
26 26
27 // InfobarContainer: 27 // InfobarContainer:
28 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, 28 virtual void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar,
29 size_t position) OVERRIDE; 29 size_t position) OVERRIDE;
30 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE; 30 virtual void PlatformSpecificRemoveInfoBar(
31 infobars::InfoBar* infobar) OVERRIDE;
31 32
32 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView); 33 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView);
33 }; 34 };
34 35
35 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ 36 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_background.cc ('k') | chrome/browser/ui/views/infobars/infobar_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698