| 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 "chrome/browser/ui/infobar_container_delegate.h" | 7 #include "chrome/browser/ui/infobar_container_delegate.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 "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
| 11 #include "ui/accessibility/ax_enums.h" |
| 11 #include "ui/accessibility/ax_view_state.h" | 12 #include "ui/accessibility/ax_view_state.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/base/material_design/material_design_controller.h" | 14 #include "ui/base/material_design/material_design_controller.h" |
| 14 #include "ui/gfx/canvas.h" | 15 #include "ui/gfx/canvas.h" |
| 15 #include "ui/gfx/skia_util.h" | 16 #include "ui/gfx/skia_util.h" |
| 16 #include "ui/views/view_targeter.h" | 17 #include "ui/views/view_targeter.h" |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| 20 // The content shadow is drawn in two stages. A darker, shorter shadow is | 21 // The content shadow is drawn in two stages. A darker, shorter shadow is |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 infobars::InfoBar* infobar, | 132 infobars::InfoBar* infobar, |
| 132 size_t position) { | 133 size_t position) { |
| 133 AddChildViewAt(static_cast<InfoBarView*>(infobar), | 134 AddChildViewAt(static_cast<InfoBarView*>(infobar), |
| 134 static_cast<int>(position)); | 135 static_cast<int>(position)); |
| 135 } | 136 } |
| 136 | 137 |
| 137 void InfoBarContainerView::PlatformSpecificRemoveInfoBar( | 138 void InfoBarContainerView::PlatformSpecificRemoveInfoBar( |
| 138 infobars::InfoBar* infobar) { | 139 infobars::InfoBar* infobar) { |
| 139 RemoveChildView(static_cast<InfoBarView*>(infobar)); | 140 RemoveChildView(static_cast<InfoBarView*>(infobar)); |
| 140 } | 141 } |
| OLD | NEW |