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

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

Issue 7046080: When replacing an infobar, maintain the old infobar's position. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 6 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 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/tab_contents/infobar_container.h" 9 #include "chrome/browser/tab_contents/infobar_container.h"
10 #include "chrome/browser/ui/views/accessible_pane_view.h" 10 #include "chrome/browser/ui/views/accessible_pane_view.h"
11 11
12 // The views-specific implementation of InfoBarContainer. 12 // The views-specific implementation of InfoBarContainer.
13 class InfoBarContainerView : public AccessiblePaneView, 13 class InfoBarContainerView : public AccessiblePaneView,
14 public InfoBarContainer { 14 public InfoBarContainer {
15 public: 15 public:
16 explicit InfoBarContainerView(Delegate* delegate); 16 explicit InfoBarContainerView(Delegate* delegate);
17 virtual ~InfoBarContainerView(); 17 virtual ~InfoBarContainerView();
18 18
19 private: 19 private:
20 // AccessiblePaneView: 20 // AccessiblePaneView:
21 virtual gfx::Size GetPreferredSize() OVERRIDE; 21 virtual gfx::Size GetPreferredSize() OVERRIDE;
22 virtual void Layout() OVERRIDE; 22 virtual void Layout() OVERRIDE;
23 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 23 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
24 24
25 // InfobarContainer: 25 // InfobarContainer:
26 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar) OVERRIDE; 26 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar,
27 size_t position) OVERRIDE;
27 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE; 28 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE;
28 29
29 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView); 30 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView);
30 }; 31 };
31 32
32 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ 33 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents_wrapper.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