OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/logging.h" | 5 #include "base/logging.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "components/infobars/core/confirm_infobar_delegate.h" | 7 #include "components/infobars/core/confirm_infobar_delegate.h" |
8 #include "components/infobars/core/infobar.h" | 8 #include "components/infobars/core/infobar.h" |
9 | 9 |
10 // Provides definitions of static variables and functions that are declared in | 10 // Provides definitions of static variables and functions that are declared in |
(...skipping 10 matching lines...) Expand all Loading... |
21 const int infobars::InfoBar::kDefaultArrowTargetHalfWidth = | 21 const int infobars::InfoBar::kDefaultArrowTargetHalfWidth = |
22 kDefaultArrowTargetHeight; | 22 kDefaultArrowTargetHeight; |
23 const int infobars::InfoBar::kMaximumArrowTargetHalfWidth = 14; | 23 const int infobars::InfoBar::kMaximumArrowTargetHalfWidth = 14; |
24 const int infobars::InfoBar::kDefaultBarTargetHeight = 36; | 24 const int infobars::InfoBar::kDefaultBarTargetHeight = 36; |
25 #endif | 25 #endif |
26 | 26 |
27 // Some components' unittests exercise code that requires that | 27 // Some components' unittests exercise code that requires that |
28 // ConfirmInfoBarDelegate::CreateInfoBar() return a non-NULL infobar. | 28 // ConfirmInfoBarDelegate::CreateInfoBar() return a non-NULL infobar. |
29 scoped_ptr<infobars::InfoBar> ConfirmInfoBarDelegate::CreateInfoBar( | 29 scoped_ptr<infobars::InfoBar> ConfirmInfoBarDelegate::CreateInfoBar( |
30 scoped_ptr<ConfirmInfoBarDelegate> delegate) { | 30 scoped_ptr<ConfirmInfoBarDelegate> delegate) { |
31 return scoped_ptr<infobars::InfoBar>(new infobars::InfoBar( | 31 return scoped_ptr<infobars::InfoBar>(new infobars::InfoBar(delegate.Pass())); |
32 delegate.PassAs<infobars::InfoBarDelegate>())); | |
33 } | 32 } |
OLD | NEW |