Chromium Code Reviews| Index: chrome/browser/ui/views/infobars/one_click_signin_infobar.h |
| diff --git a/chrome/browser/ui/views/infobars/one_click_signin_infobar.h b/chrome/browser/ui/views/infobars/one_click_signin_infobar.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cfccf48fcafc18062de359a7b86a3bfdf18caf09 |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/infobars/one_click_signin_infobar.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_ONE_CLICK_SIGNIN_INFOBAR_H_ |
| +#define CHROME_BROWSER_UI_VIEWS_INFOBARS_ONE_CLICK_SIGNIN_INFOBAR_H_ |
| + |
| +#include "chrome/browser/api/infobars/one_click_signin_infobar_delegate.h" |
| +#include "chrome/browser/ui/views/infobars/confirm_infobar.h" |
| + |
| +// A speialization of ConfirmInfoBar that allows changing the background |
| +// colour of the infobar as well as the colour of the OK button. The behaviour |
| +// remains the same. |
| +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.
|
| + public: |
| + OneClickLoginInfoBar(InfoBarTabHelper* owner, |
| + OneClickSigninInfoBarDelegate* delegate); |
| + ~OneClickLoginInfoBar(); |
| + |
| + private: |
| + // ConfirmInfoBar overrides. |
| + virtual void ViewHierarchyChanged(bool is_add, |
| + views::View* parent, |
| + views::View* child) OVERRIDE; |
| + |
| + OneClickSigninInfoBarDelegate* one_click_delegate_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(OneClickLoginInfoBar); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_ONE_CLICK_SIGNIN_INFOBAR_H_ |