Chromium Code Reviews| 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 dummy definitions of static variables and functions that are | 10 // Provides dummy definitions of static variables and functions that are |
| 11 // declared in the component but defined in the embedder in order to allow | 11 // declared in the component but defined in the embedder in order to allow |
| 12 // components_unittests to link. | 12 // components_unittests to link. |
| 13 // TODO(blundell): The component shouldn't be declaring statics that it's not | 13 // TODO(blundell): The component shouldn't be declaring statics that it's not |
| 14 // defining. crbug.com/386171 | 14 // defining. crbug.com/386171 |
| 15 | 15 |
| 16 // On Android, these variables are defined in ../core/infobar_android.cc. | 16 // On Android, these variables are defined in ../core/infobar_android.cc. |
| 17 #if !defined(OS_ANDROID) | 17 #if !defined(OS_ANDROID) |
| 18 const int infobars::InfoBar::kSeparatorLineHeight = 1; | 18 const int infobars::InfoBar::kSeparatorLineHeight = 1; |
| 19 const int infobars::InfoBar::kDefaultArrowTargetHeight = 9; | 19 const int infobars::InfoBar::kDefaultArrowTargetHeight = 9; |
| 20 const int infobars::InfoBar::kMaximumArrowTargetHeight = 24; | 20 const int infobars::InfoBar::kMaximumArrowTargetHeight = 24; |
| 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 scoped_ptr<infobars::InfoBar> ConfirmInfoBarDelegate::CreateInfoBar( | 27 scoped_ptr<infobars::InfoBar> ConfirmInfoBarDelegate::CreateInfoBar( |
| 28 scoped_ptr<ConfirmInfoBarDelegate> delegate) { | 28 scoped_ptr<ConfirmInfoBarDelegate> delegate) { |
| 29 NOTREACHED(); | 29 return scoped_ptr<infobars::InfoBar>(new infobars::InfoBar( |
| 30 return scoped_ptr<infobars::InfoBar>(); | 30 delegate.PassAs<infobars::InfoBarDelegate>())); |
|
Peter Kasting
2014/08/26 17:57:24
If you need a real implementation here now, does t
blundell
2014/09/12 12:48:08
Updated the comment. This is not just temporary in
| |
| 31 } | 31 } |
| OLD | NEW |