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