Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4942)

Unified Diff: chrome/browser/ui/views/infobars/one_click_signin_infobar.h

Issue 10911169: Setup field trial for one-click signin inforbar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..94047efcf4a340c49e837e3896f50bacfdfa60bb
--- /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 OneClickSigninInfoBar : public ConfirmInfoBar {
+ public:
+ OneClickSigninInfoBar(InfoBarTabHelper* owner,
+ OneClickSigninInfoBarDelegate* delegate);
+ ~OneClickSigninInfoBar();
+
+ private:
+ // ConfirmInfoBar overrides.
+ virtual void ViewHierarchyChanged(bool is_add,
+ views::View* parent,
+ views::View* child) OVERRIDE;
+
+ OneClickSigninInfoBarDelegate* one_click_delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(OneClickSigninInfoBar);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_ONE_CLICK_SIGNIN_INFOBAR_H_
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.cc ('k') | chrome/browser/ui/views/infobars/one_click_signin_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698