- add sources.
[platform/framework/web/crosswalk.git] / src / ui / app_list / views / signin_view.h
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 #ifndef UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_
6 #define UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_
7
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"
14
15 namespace gfx {
16 class Font;
17 }
18
19 namespace app_list {
20
21 class SigninDelegate;
22
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 {
27  public:
28   SigninView(SigninDelegate* delegate, int width);
29   virtual ~SigninView();
30
31  private:
32   // views::ButtonListener overrides:
33   virtual void ButtonPressed(views::Button* sender,
34                              const ui::Event& event) OVERRIDE;
35
36   // views::LinkListener overrides:
37   virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
38
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_;
44
45   SigninDelegate* delegate_;
46
47   DISALLOW_COPY_AND_ASSIGN(SigninView);
48 };
49
50 }  // namespace app_list
51
52 #endif  // UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_