Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: components/infobars/test/infobar_test.cc

Issue 366373002: [Variations] Bring variations_http_header_provider to variations component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix BUILD.gn Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/logging.h"
6 #include "base/memory/scoped_ptr.h"
7 #include "components/infobars/core/confirm_infobar_delegate.h"
8 #include "components/infobars/core/infobar.h"
9
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
12 // components_unittests to link.
13 // TODO(blundell): The component shouldn't be declaring statics that it's not
14 // defining. crbug.com/386171
15
16 // On Android, these variables are defined in ../core/infobar_android.cc.
17 #if !defined(OS_ANDROID)
18 const int infobars::InfoBar::kSeparatorLineHeight = 1;
19 const int infobars::InfoBar::kDefaultArrowTargetHeight = 9;
20 const int infobars::InfoBar::kMaximumArrowTargetHeight = 24;
21 const int infobars::InfoBar::kDefaultArrowTargetHalfWidth =
22 kDefaultArrowTargetHeight;
23 const int infobars::InfoBar::kMaximumArrowTargetHalfWidth = 14;
24 const int infobars::InfoBar::kDefaultBarTargetHeight = 36;
25 #endif
26
27 scoped_ptr<infobars::InfoBar> ConfirmInfoBarDelegate::CreateInfoBar(
28 scoped_ptr<ConfirmInfoBarDelegate> delegate) {
29 NOTREACHED();
30 return scoped_ptr<infobars::InfoBar>();
31 }
OLDNEW
« no previous file with comments | « components/infobars.gypi ('k') | components/variations.gypi » ('j') | components/variations.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698