OLD | NEW |
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 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" | 5 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/browser/ui/view_ids.h" | 8 #include "chrome/browser/ui/view_ids.h" |
9 #include "chrome/browser/ui/views/infobars/infobar_view.h" | 9 #include "chrome/browser/ui/views/infobars/infobar_view.h" |
10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 } | 54 } |
55 | 55 |
56 void InfoBarContainerView::PlatformSpecificAddInfoBar(InfoBar* infobar, | 56 void InfoBarContainerView::PlatformSpecificAddInfoBar(InfoBar* infobar, |
57 size_t position) { | 57 size_t position) { |
58 AddChildViewAt(static_cast<InfoBarView*>(infobar), | 58 AddChildViewAt(static_cast<InfoBarView*>(infobar), |
59 static_cast<int>(position)); | 59 static_cast<int>(position)); |
60 } | 60 } |
61 | 61 |
62 void InfoBarContainerView::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { | 62 void InfoBarContainerView::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { |
63 RemoveChildView(static_cast<InfoBarView*>(infobar)); | 63 RemoveChildView(static_cast<InfoBarView*>(infobar)); |
64 MessageLoop::current()->DeleteSoon(FROM_HERE, infobar); | 64 base::MessageLoop::current()->DeleteSoon(FROM_HERE, infobar); |
65 } | 65 } |
OLD | NEW |