blob: 499d782fb85317e056f1a9fd91b16596bd73f48b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// 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_GTK_OPTIONS_MANAGED_PREFS_BANNER_GTK_H_
#define CHROME_BROWSER_GTK_OPTIONS_MANAGED_PREFS_BANNER_GTK_H_
#include <set>
#include <gtk/gtk.h>
#include "chrome/browser/managed_prefs_banner_base.h"
// Constructs and maintains a GTK widget displaying a warning banner. The banner
// is displayed on the preferences dialog whenever there are options that are
// not settable by the user due to policy.
class ManagedPrefsBannerGtk : public ManagedPrefsBannerBase {
public:
ManagedPrefsBannerGtk(PrefService* prefs, OptionsPage page);
virtual ~ManagedPrefsBannerGtk() { }
GtkWidget* banner_widget() { return banner_widget_; }
protected:
// Update widget visibility.
virtual void OnUpdateVisibility();
private:
// Construct the widget.
void InitWidget();
GtkWidget* banner_widget_;
DISALLOW_COPY_AND_ASSIGN(ManagedPrefsBannerGtk);
};
#endif // CHROME_BROWSER_GTK_OPTIONS_MANAGED_PREFS_BANNER_GTK_H_
|