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

Unified Diff: chrome/browser/ui/views/options/managed_prefs_banner_view.h

Issue 6670011: Options: Remove the GTK and Views native options code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years, 9 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/views/options/managed_prefs_banner_view.h
diff --git a/chrome/browser/ui/views/options/managed_prefs_banner_view.h b/chrome/browser/ui/views/options/managed_prefs_banner_view.h
deleted file mode 100644
index 71396d81f4d209e93497df617687050ea69fc61f..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/options/managed_prefs_banner_view.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// 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_UI_VIEWS_OPTIONS_MANAGED_PREFS_BANNER_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_OPTIONS_MANAGED_PREFS_BANNER_VIEW_H_
-#pragma once
-
-#include "chrome/browser/policy/managed_prefs_banner_base.h"
-#include "views/view.h"
-
-namespace views {
-class ImageView;
-class Label;
-}
-
-// Displays a banner showing a warning message that tells the user some options
-// cannot be changed because the relevant preferences are managed by their
-// system administrator.
-class ManagedPrefsBannerView : public policy::ManagedPrefsBannerBase,
- public views::View {
- public:
- // Initialize the banner. |page| is used to determine the names of the
- // preferences that control the banner visibility through their managed flag.
- ManagedPrefsBannerView(PrefService* pref_service, OptionsPage page);
- virtual ~ManagedPrefsBannerView() {}
-
- private:
- // Initialize contents and layout.
- void Init();
-
- // views::View overrides.
- virtual gfx::Size GetPreferredSize();
- virtual void Layout();
- virtual void ViewHierarchyChanged(bool is_add,
- views::View* parent,
- views::View* child);
-
- // ManagedPrefsBannerBase override.
- virtual void OnUpdateVisibility();
-
- // Holds the warning icon image and text label and renders the border.
- views::View* content_;
- // Warning icon image.
- views::ImageView* warning_image_;
- // The label responsible for rendering the warning text.
- views::Label* label_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(ManagedPrefsBannerView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_MANAGED_PREFS_BANNER_VIEW_H_
« no previous file with comments | « chrome/browser/ui/views/options/languages_page_view.cc ('k') | chrome/browser/ui/views/options/managed_prefs_banner_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698