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/ui/views/infobars/confirm_infobar.h" | |
9 | |
10 class OneClickSigninInfoBarDelegate; | |
11 | |
12 // A speialization of ConfirmInfoBar that allows changing the background | |
13 // colour of the infobar as well as the colour of the OK button. The behaviour | |
14 // remains the same. | |
15 class OneClickSigninInfoBar : public ConfirmInfoBar { | |
16 public: | |
17 OneClickSigninInfoBar(InfoBarService* owner, | |
18 OneClickSigninInfoBarDelegate* delegate); | |
19 virtual ~OneClickSigninInfoBar(); | |
20 | |
21 private: | |
22 // ConfirmInfoBar overrides. | |
23 virtual void ViewHierarchyChanged(bool is_add, | |
24 views::View* parent, | |
25 views::View* child) OVERRIDE; | |
26 | |
27 OneClickSigninInfoBarDelegate* one_click_delegate_; | |
28 | |
29 DISALLOW_COPY_AND_ASSIGN(OneClickSigninInfoBar); | |
30 }; | |
31 | |
32 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_ONE_CLICK_SIGNIN_INFOBAR_H_ | |
OLD | NEW |