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

Side by Side Diff: chrome/browser/ui/views/sync/bubble_sync_promo_view.cc

Issue 2799163002: Views/Harmony: Remove references to layout constants in c/b/ui/views/sync. (Closed)
Patch Set: Review comments. Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/sync/one_click_signin_dialog_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/sync/bubble_sync_promo_view.h" 5 #include "chrome/browser/ui/views/sync/bubble_sync_promo_view.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h" 10 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h"
11 #include "third_party/skia/include/core/SkColor.h" 11 #include "third_party/skia/include/core/SkColor.h"
12 #include "ui/base/l10n/l10n_util.h" 12 #include "ui/base/l10n/l10n_util.h"
13 #include "ui/gfx/font.h" 13 #include "ui/gfx/font.h"
14 #include "ui/views/controls/styled_label.h" 14 #include "ui/views/controls/styled_label.h"
15 #include "ui/views/layout/fill_layout.h" 15 #include "ui/views/layout/fill_layout.h"
16 #include "ui/views/layout/layout_constants.h"
17 16
18 namespace { 17 namespace {
19 18
20 // Color of the text of the promo. 19 // Color of the text of the promo.
21 const SkColor kTextColor = SkColorSetRGB(102, 102, 102); 20 const SkColor kTextColor = SkColorSetRGB(102, 102, 102);
22 21
23 } // namespace 22 } // namespace
24 23
25 BubbleSyncPromoView::BubbleSyncPromoView(BubbleSyncPromoDelegate* delegate, 24 BubbleSyncPromoView::BubbleSyncPromoView(BubbleSyncPromoDelegate* delegate,
26 int link_text_resource_id, 25 int link_text_resource_id,
(...skipping 24 matching lines...) Expand all
51 50
52 const char* BubbleSyncPromoView::GetClassName() const { 51 const char* BubbleSyncPromoView::GetClassName() const {
53 return "BubbleSyncPromoView"; 52 return "BubbleSyncPromoView";
54 } 53 }
55 54
56 void BubbleSyncPromoView::StyledLabelLinkClicked(views::StyledLabel* label, 55 void BubbleSyncPromoView::StyledLabelLinkClicked(views::StyledLabel* label,
57 const gfx::Range& range, 56 const gfx::Range& range,
58 int event_flags) { 57 int event_flags) {
59 delegate_->OnSignInLinkClicked(); 58 delegate_->OnSignInLinkClicked();
60 } 59 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/sync/one_click_signin_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698