Chromium Code Reviews| 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 "cc/paint/paint_flags.h" | 7 #include "cc/paint/paint_flags.h" |
| 8 #include "cc/paint/paint_shader.h" | 8 #include "cc/paint/paint_shader.h" |
| 9 #include "chrome/browser/ui/infobar_container_delegate.h" | 9 #include "chrome/browser/ui/infobar_container_delegate.h" |
| 10 #include "chrome/browser/ui/view_ids.h" | 10 #include "chrome/browser/ui/view_ids.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 126 infobars::InfoBar* infobar, | 126 infobars::InfoBar* infobar, |
| 127 size_t position) { | 127 size_t position) { |
| 128 AddChildViewAt(static_cast<InfoBarView*>(infobar), | 128 AddChildViewAt(static_cast<InfoBarView*>(infobar), |
| 129 static_cast<int>(position)); | 129 static_cast<int>(position)); |
| 130 } | 130 } |
| 131 | 131 |
| 132 void InfoBarContainerView::PlatformSpecificRemoveInfoBar( | 132 void InfoBarContainerView::PlatformSpecificRemoveInfoBar( |
| 133 infobars::InfoBar* infobar) { | 133 infobars::InfoBar* infobar) { |
| 134 RemoveChildView(static_cast<InfoBarView*>(infobar)); | 134 RemoveChildView(static_cast<InfoBarView*>(infobar)); |
| 135 } | 135 } |
| 136 | |
| 137 void InfoBarContainerView::OnNativeThemeChanged(const ui::NativeTheme* theme) { | |
| 138 for (int i = 0; i < child_count(); ++i) | |
|
Peter Kasting
2017/02/18 01:26:20
Nit: Might want a comment noting what bit of code/
Tom (Use chromium acct)
2017/02/18 01:54:12
Done.
| |
| 139 child_at(i)->SchedulePaint(); | |
| 140 } | |
| OLD | NEW |