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

Side by Side Diff: ui/views/controls/button/blue_button.cc

Issue 117983002: Prefix string16 with base:: in ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years 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
« no previous file with comments | « ui/views/color_chooser/color_chooser_view.cc ('k') | ui/views/controls/button/button.h » ('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 "ui/views/controls/button/blue_button.h" 5 #include "ui/views/controls/button/blue_button.h"
6 6
7 #include "grit/ui_resources.h" 7 #include "grit/ui_resources.h"
8 #include "ui/base/accessibility/accessible_view_state.h" 8 #include "ui/base/accessibility/accessible_view_state.h"
9 #include "ui/base/resource/resource_bundle.h" 9 #include "ui/base/resource/resource_bundle.h"
10 #include "ui/gfx/sys_color_change_listener.h" 10 #include "ui/gfx/sys_color_change_listener.h"
11 #include "ui/views/controls/button/label_button_border.h" 11 #include "ui/views/controls/button/label_button_border.h"
12 12
13 namespace { 13 namespace {
14 14
15 // Insets for the unified blue_button images. This assumes that the images 15 // Insets for the unified blue_button images. This assumes that the images
16 // are of a 9 grid, of 5x5 size each. 16 // are of a 9 grid, of 5x5 size each.
17 const int kBlueButtonInsets = 5; 17 const int kBlueButtonInsets = 5;
18 18
19 // Default text and shadow colors for the blue button. 19 // Default text and shadow colors for the blue button.
20 const SkColor kBlueButtonTextColor = SK_ColorWHITE; 20 const SkColor kBlueButtonTextColor = SK_ColorWHITE;
21 const SkColor kBlueButtonShadowColor = SkColorSetRGB(0x53, 0x8C, 0xEA); 21 const SkColor kBlueButtonShadowColor = SkColorSetRGB(0x53, 0x8C, 0xEA);
22 22
23 } // namespace 23 } // namespace
24 24
25 namespace views { 25 namespace views {
26 26
27 // static 27 // static
28 const char BlueButton::kViewClassName[] = "views/BlueButton"; 28 const char BlueButton::kViewClassName[] = "views/BlueButton";
29 29
30 BlueButton::BlueButton(ButtonListener* listener, const string16& text) 30 BlueButton::BlueButton(ButtonListener* listener, const base::string16& text)
31 : LabelButton(listener, text) { 31 : LabelButton(listener, text) {
32 // Inherit STYLE_BUTTON insets, minimum size, alignment, etc. 32 // Inherit STYLE_BUTTON insets, minimum size, alignment, etc.
33 SetStyle(STYLE_BUTTON); 33 SetStyle(STYLE_BUTTON);
34 34
35 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 35 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
36 const gfx::Insets insets(kBlueButtonInsets, 36 const gfx::Insets insets(kBlueButtonInsets,
37 kBlueButtonInsets, 37 kBlueButtonInsets,
38 kBlueButtonInsets, 38 kBlueButtonInsets,
39 kBlueButtonInsets); 39 kBlueButtonInsets);
40 40
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 label()->SetShadowColors(kBlueButtonShadowColor, kBlueButtonShadowColor); 75 label()->SetShadowColors(kBlueButtonShadowColor, kBlueButtonShadowColor);
76 label()->SetShadowOffset(0, 1); 76 label()->SetShadowOffset(0, 1);
77 } 77 }
78 } 78 }
79 79
80 const char* BlueButton::GetClassName() const { 80 const char* BlueButton::GetClassName() const {
81 return BlueButton::kViewClassName; 81 return BlueButton::kViewClassName;
82 } 82 }
83 83
84 } // namespace views 84 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/color_chooser/color_chooser_view.cc ('k') | ui/views/controls/button/button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698