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