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

Unified Diff: chrome/browser/intents/register_intent_handler_infobar_delegate.h

Issue 7461093: Web Intents: Preparatory work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pkasting fix 3. Created 9 years, 5 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/intents/register_intent_handler_infobar_delegate.h
diff --git a/chrome/browser/intents/register_intent_handler_infobar_delegate.h b/chrome/browser/intents/register_intent_handler_infobar_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..315691ab745a69486377d75fb708ffd3ec31fb14
--- /dev/null
+++ b/chrome/browser/intents/register_intent_handler_infobar_delegate.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2011 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_INTENTS_REGISTER_INTENT_HANDLER_INFOBAR_DELEGATE_H_
+#define CHROME_BROWSER_INTENTS_REGISTER_INTENT_HANDLER_INFOBAR_DELEGATE_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/string16.h"
+#include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
+
+class TabContents;
+
+// The InfoBar used to request permission for a site to be registered as an
+// Intent handler.
+class RegisterIntentHandlerInfoBarDelegate : public ConfirmInfoBarDelegate {
+ public:
+ // TODO(jhawkins): Pass in WebIntentData.
+ explicit RegisterIntentHandlerInfoBarDelegate(TabContents* tab_contents);
+
+ // ConfirmInfoBarDelegate implementation.
+ virtual Type GetInfoBarType() const OVERRIDE;
+ virtual string16 GetMessageText() const OVERRIDE;
+ virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
+ virtual string16 GetLinkText() const OVERRIDE;
+ virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
+
+ private:
+ // The TabContents that contains this InfoBar. Weak pointer.
+ TabContents* tab_contents_;
+
+ DISALLOW_COPY_AND_ASSIGN(RegisterIntentHandlerInfoBarDelegate);
+};
+
+#endif // CHROME_BROWSER_INTENTS_REGISTER_INTENT_HANDLER_INFOBAR_DELEGATE_H_
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/intents/register_intent_handler_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698