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

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: Address Steve's review comments 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..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_

Powered by Google App Engine
This is Rietveld 408576698