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

Unified Diff: chrome/browser/dom_ui/options_managed_banner_handler.h

Issue 3108018: Display a banner above each panel that contains managed options.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/dom_ui/options_managed_banner_handler.h
===================================================================
--- chrome/browser/dom_ui/options_managed_banner_handler.h (revision 0)
+++ chrome/browser/dom_ui/options_managed_banner_handler.h (revision 0)
@@ -0,0 +1,39 @@
+// Copyright (c) 2010 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_DOM_UI_OPTIONS_MANAGED_BANNER_HANDLER_H_
+#define CHROME_BROWSER_DOM_UI_OPTIONS_MANAGED_BANNER_HANDLER_H_
+#pragma once
+
+#include "chrome/browser/managed_prefs_banner_base.h"
+#include "chrome/browser/options_window.h"
+
+class DOMUI;
+
+// Managed options banner handler.
+// Controls the display of a banner if an options panel contains options
+// that are under administator control.
+class OptionsManagedBannerHandler : public ManagedPrefsBannerBase {
+ public:
+ OptionsManagedBannerHandler(DOMUI* dom_ui, const string16& page_name,
+ OptionsPage page);
+ virtual ~OptionsManagedBannerHandler() { }
+
+ protected:
+ // ManagedPrefsBannerBase implementation.
+ virtual void OnUpdateVisibility();
+
+ private:
+ // Set the managed options banner to be visible or invisible.
+ void SetupBannerVisibilty();
+
+ DOMUI* dom_ui_; // weak reference to the dom-ui.
+ string16 page_name_; // current options page name.
+ OptionsPage page_; // current options page value.
+
+ DISALLOW_COPY_AND_ASSIGN(OptionsManagedBannerHandler);
+};
+
+#endif // CHROME_BROWSER_DOM_UI_OPTIONS_MANAGED_BANNER_HANDLER_H_
+
Property changes on: chrome/browser/dom_ui/options_managed_banner_handler.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/dom_ui/core_options_handler.cc ('k') | chrome/browser/dom_ui/options_managed_banner_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698