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

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

Issue 2686703002: Remove TrayPopupLabelButton (a pre-MD class) and its assets. (Closed)
Patch Set: nit Created 3 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ash/common/system/tray/tray_popup_label_button.h"
6
7 #include "ash/common/ash_constants.h"
8 #include "ash/common/material_design/material_design_controller.h"
9 #include "ash/common/system/tray/tray_popup_label_button_border.h"
10 #include "ui/gfx/canvas.h"
11 #include "ui/gfx/geometry/rect.h"
12 #include "ui/views/painter.h"
13
14 namespace ash {
15
16 TrayPopupLabelButton::TrayPopupLabelButton(views::ButtonListener* listener,
17 const base::string16& text)
18 : views::LabelButton(listener, text) {
19 DCHECK(!MaterialDesignController::IsSystemTrayMenuMaterial());
20 SetBorder(std::unique_ptr<views::Border>(new TrayPopupLabelButtonBorder));
21 SetFocusForPlatform();
22 set_animate_on_state_change(false);
23 SetHorizontalAlignment(gfx::ALIGN_CENTER);
24 SetFocusPainter(views::Painter::CreateSolidFocusPainter(
25 kFocusBorderColor, gfx::Insets(1, 1, 2, 2)));
26 }
27
28 TrayPopupLabelButton::~TrayPopupLabelButton() {}
29
30 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_popup_label_button.h ('k') | ash/common/system/tray/tray_popup_label_button_border.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698