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 #ifndef UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_
6 #define UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/views/controls/button/button.h"
12 #include "ui/views/controls/link_listener.h"
13 #include "ui/views/view.h"
23 // The SigninView is shown in the app list when the user needs to sign in.
24 class SigninView : public views::View,
25 public views::ButtonListener,
26 public views::LinkListener {
28 SigninView(SigninDelegate* delegate, int width);
29 virtual ~SigninView();
32 // views::ButtonListener overrides:
33 virtual void ButtonPressed(views::Button* sender,
34 const ui::Event& event) OVERRIDE;
36 // views::LinkListener overrides:
37 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
39 views::Link* learn_more_link_;
40 views::Link* settings_link_;
41 scoped_ptr<gfx::Font> title_font_;
42 scoped_ptr<gfx::Font> text_font_;
43 scoped_ptr<gfx::Font> button_font_;
45 SigninDelegate* delegate_;
47 DISALLOW_COPY_AND_ASSIGN(SigninView);
50 } // namespace app_list
52 #endif // UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_