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

Side by Side Diff: ash/common/system/tray/tray_popup_label_button.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 "ash/common/system/tray/tray_popup_label_button.h" 5 #include "ash/common/system/tray/tray_popup_label_button.h"
6 6
7 #include "ash/common/ash_constants.h" 7 #include "ash/common/ash_constants.h"
8 #include "ash/common/system/tray/tray_popup_label_button_border.h" 8 #include "ash/common/system/tray/tray_popup_label_button_border.h"
9 #include "ui/gfx/canvas.h" 9 #include "ui/gfx/canvas.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/views/painter.h" 11 #include "ui/views/painter.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 TrayPopupLabelButton::TrayPopupLabelButton(views::ButtonListener* listener, 15 TrayPopupLabelButton::TrayPopupLabelButton(views::ButtonListener* listener,
16 const base::string16& text) 16 const base::string16& text)
17 : views::LabelButton(listener, text) { 17 : views::LabelButton(listener, text) {
18 SetBorder(std::unique_ptr<views::Border>(new TrayPopupLabelButtonBorder)); 18 SetBorder(std::unique_ptr<views::Border>(new TrayPopupLabelButtonBorder));
19 SetFocusForPlatform(); 19 SetFocusForPlatform();
20 set_animate_on_state_change(false); 20 set_animate_on_state_change(false);
21 SetHorizontalAlignment(gfx::ALIGN_CENTER); 21 SetHorizontalAlignment(gfx::ALIGN_CENTER);
22 SetFocusPainter(views::Painter::CreateSolidFocusPainter( 22 SetFocusPainter(views::Painter::CreateSolidFocusPainter(
23 kFocusBorderColor, 23 kFocusBorderColor, gfx::Insets(1, 1, 2, 2)));
24 gfx::Insets(1, 1, 2, 2)));
25 } 24 }
26 25
27 TrayPopupLabelButton::~TrayPopupLabelButton() {} 26 TrayPopupLabelButton::~TrayPopupLabelButton() {}
28 27
29 } // namespace ash 28 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_popup_item_container.cc ('k') | ash/common/system/tray/tray_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698