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

Unified Diff: chrome/browser/ui/website_settings/website_settings_infobar_delegate.h

Issue 10830050: (Views only) Prompt the user to reload the website after changing site permissions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 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/ui/website_settings/website_settings_infobar_delegate.h
diff --git a/chrome/browser/ui/website_settings/website_settings_infobar_delegate.h b/chrome/browser/ui/website_settings/website_settings_infobar_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f2b7bc57545c10686270fefd1a660a8c457089a
--- /dev/null
+++ b/chrome/browser/ui/website_settings/website_settings_infobar_delegate.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_WEBSITE_SETTINGS_WEBSITE_SETTINGS_INFOBAR_DELEGATE_H_
+#define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_INFOBAR_DELEGATE_H_
+
+#include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
+
+// This class configures an infobar that is shown when the website settings UI
+// is closed and the settings for one or more site permissions have been
+// changed. The user is shown a message indicating that a reload of the page is
+// required for the changes to take effect, and presented a button to perform
+// the reload right from the infobar.
+class WebsiteSettingsInfobarDelegate : public ConfirmInfoBarDelegate {
+ public:
+ explicit WebsiteSettingsInfobarDelegate(InfoBarTabHelper* infobar_helper);
+
+ private:
+ // Overwritten from ConfirmInfoBarDelegate:
Finnur 2012/08/01 08:23:58 nit: Overridden is probably the word you are looki
markusheintz_ 2012/08/01 08:59:01 Done.
+ virtual gfx::Image* GetIcon() const OVERRIDE;
+ virtual Type GetInfoBarType() const OVERRIDE;
+ virtual string16 GetMessageText() const OVERRIDE;
+ virtual int GetButtons() const OVERRIDE;
+ virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
+ virtual bool Accept() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsInfobarDelegate);
+};
+
+#endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_INFOBAR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698