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

Unified Diff: chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.h

Issue 11316153: implement input type=color for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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/blocked_content/popup_blocked_infobar_delegate.h
diff --git a/chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.h b/chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..2f206f0dd9da039e121904e991acfe2915a3f59c
--- /dev/null
+++ b/chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2013 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_BLOCKED_CONTENT_POPUP_BLOCKED_INFOBAR_DELEGATE_H_
+#define CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKED_INFOBAR_DELEGATE_H_
+
+#include "chrome/browser/infobars/confirm_infobar_delegate.h"
+
+class InfoBarService;
+
+class PopupBlockedInfoBarDelegate : public ConfirmInfoBarDelegate {
+ public:
+ static InfoBarDelegate* Create(InfoBarService* infobar_service, int n_popups);
+ virtual ~PopupBlockedInfoBarDelegate();
+
+ // ConfirmInfoBarDelegate:
+ virtual string16 GetMessageText() const OVERRIDE;
+ virtual int GetButtons() const OVERRIDE;
+ virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
+ virtual int GetIconID() const OVERRIDE;
+ virtual PopupBlockedInfoBarDelegate* AsPopupBlockedInfoBarDelegate() OVERRIDE;
+ virtual bool Accept() OVERRIDE;
+
+
+ private:
+ PopupBlockedInfoBarDelegate(InfoBarService* infobar_service, int n_popups);
+ int n_popups_;
+
+ DISALLOW_COPY_AND_ASSIGN(PopupBlockedInfoBarDelegate);
+};
+
+#endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKED_INFOBAR_DELEGATE_H_
« no previous file with comments | « chrome/browser/infobars/infobar_delegate.cc ('k') | chrome/browser/ui/blocked_content/popup_blocked_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698