cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ash / system / tray / tray_popup_label_button.cc
blob4d4ff84620c2ebf9dbee0e62b99b7fecaef750a8
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.
5 #include "ash/system/tray/tray_popup_label_button.h"
7 #include "ash/ash_constants.h"
8 #include "ash/system/tray/tray_popup_label_button_border.h"
9 #include "ui/gfx/canvas.h"
10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/views/painter.h"
13 namespace ash {
15 TrayPopupLabelButton::TrayPopupLabelButton(views::ButtonListener* listener,
16 const base::string16& text)
17 : views::LabelButton(listener, text) {
18 SetBorder(scoped_ptr<views::Border>(new TrayPopupLabelButtonBorder));
19 SetFocusable(true);
20 set_request_focus_on_press(false);
21 set_animate_on_state_change(false);
22 SetHorizontalAlignment(gfx::ALIGN_CENTER);
23 SetFocusPainter(views::Painter::CreateSolidFocusPainter(
24 kFocusBorderColor,
25 gfx::Insets(1, 1, 2, 2)));
28 TrayPopupLabelButton::~TrayPopupLabelButton() {}
30 } // namespace ash