Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_INFOBARS_ONE_CLICK_SIGNIN_INFOBAR_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_ONE_CLICK_SIGNIN_INFOBAR_H_ | |
| 7 | |
| 8 #include "chrome/browser/api/infobars/one_click_signin_infobar_delegate.h" | |
| 9 #include "chrome/browser/ui/views/infobars/confirm_infobar.h" | |
| 10 | |
| 11 // A speialization of ConfirmInfoBar that allows changing the background | |
| 12 // colour of the infobar as well as the colour of the OK button. The behaviour | |
| 13 // remains the same. | |
| 14 class OneClickLoginInfoBar : public ConfirmInfoBar { | |
|
Peter Kasting
2012/09/11 23:02:07
Nit: The file says "signin" and the class says "lo
Roger Tawa OOO till Jul 10th
2012/09/12 15:07:14
Done.
| |
| 15 public: | |
| 16 OneClickLoginInfoBar(InfoBarTabHelper* owner, | |
| 17 OneClickSigninInfoBarDelegate* delegate); | |
| 18 ~OneClickLoginInfoBar(); | |
| 19 | |
| 20 private: | |
| 21 // ConfirmInfoBar overrides. | |
| 22 virtual void ViewHierarchyChanged(bool is_add, | |
| 23 views::View* parent, | |
| 24 views::View* child) OVERRIDE; | |
| 25 | |
| 26 OneClickSigninInfoBarDelegate* one_click_delegate_; | |
| 27 | |
| 28 DISALLOW_COPY_AND_ASSIGN(OneClickLoginInfoBar); | |
| 29 }; | |
| 30 | |
| 31 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_ONE_CLICK_SIGNIN_INFOBAR_H_ | |
| OLD | NEW |