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" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 10 matching lines...) Expand all Loading... | |
21 class SigninDelegate; | 21 class SigninDelegate; |
22 | 22 |
23 // The SigninView is shown in the app list when the user needs to sign in. | 23 // The SigninView is shown in the app list when the user needs to sign in. |
24 class SigninView : public views::View, | 24 class SigninView : public views::View, |
25 public views::ButtonListener, | 25 public views::ButtonListener, |
26 public views::LinkListener { | 26 public views::LinkListener { |
27 public: | 27 public: |
28 SigninView(SigninDelegate* delegate, int width); | 28 SigninView(SigninDelegate* delegate, int width); |
29 virtual ~SigninView(); | 29 virtual ~SigninView(); |
30 | 30 |
31 void SetDelegate(SigninDelegate* delegate) { delegate_ = delegate; } | |
tapted
2013/07/31 05:43:53
nit: SetDelegate -> set_delegate
benwells
2013/07/31 05:47:13
use set_delegate for trivial setters like this.
calamity
2013/08/01 08:35:45
Removed.
| |
32 | |
31 private: | 33 private: |
32 // views::ButtonListener overrides: | 34 // views::ButtonListener overrides: |
33 virtual void ButtonPressed(views::Button* sender, | 35 virtual void ButtonPressed(views::Button* sender, |
34 const ui::Event& event) OVERRIDE; | 36 const ui::Event& event) OVERRIDE; |
35 | 37 |
36 // views::LinkListener overrides: | 38 // views::LinkListener overrides: |
37 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 39 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
38 | 40 |
39 views::Link* learn_more_link_; | 41 views::Link* learn_more_link_; |
40 views::Link* settings_link_; | 42 views::Link* settings_link_; |
41 scoped_ptr<gfx::Font> title_font_; | 43 scoped_ptr<gfx::Font> title_font_; |
42 scoped_ptr<gfx::Font> text_font_; | 44 scoped_ptr<gfx::Font> text_font_; |
43 scoped_ptr<gfx::Font> button_font_; | 45 scoped_ptr<gfx::Font> button_font_; |
44 | 46 |
45 SigninDelegate* delegate_; | 47 SigninDelegate* delegate_; |
46 | 48 |
47 DISALLOW_COPY_AND_ASSIGN(SigninView); | 49 DISALLOW_COPY_AND_ASSIGN(SigninView); |
48 }; | 50 }; |
49 | 51 |
50 } // namespace app_list | 52 } // namespace app_list |
51 | 53 |
52 #endif // UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_ | 54 #endif // UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_ |
OLD | NEW |