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

Unified Diff: chrome/browser/ui/views/options/options_group_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/options_group_view.h
diff --git a/chrome/browser/ui/views/options/options_group_view.h b/chrome/browser/ui/views/options/options_group_view.h
deleted file mode 100644
index 1d32c0a861bf5d1a0eb019e08cd21514d81858dc..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/options/options_group_view.h
+++ /dev/null
@@ -1,63 +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_OPTIONS_GROUP_VIEW_H__
-#define CHROME_BROWSER_UI_VIEWS_OPTIONS_OPTIONS_GROUP_VIEW_H__
-#pragma once
-
-#include "views/view.h"
-
-namespace views {
-class Label;
-class Separator;
-};
-
-///////////////////////////////////////////////////////////////////////////////
-// OptionsGroupView
-//
-// A helper View that gathers related options into groups with a title and
-// optional description.
-//
-class OptionsGroupView : public views::View {
- public:
- OptionsGroupView(views::View* contents,
- const std::wstring& title,
- const std::wstring& description,
- bool show_separator);
- virtual ~OptionsGroupView();
-
- // Sets the group as being highlighted to attract attention.
- void SetHighlighted(bool highlighted);
-
- // Retrieves the width of the ContentsView. Used to help size wrapping items.
- int GetContentsWidth() const;
-
- protected:
- // views::View overrides:
- virtual AccessibilityTypes::Role GetAccessibleRole();
- virtual void OnPaint(gfx::Canvas* canvas);
- virtual void ViewHierarchyChanged(bool is_add,
- views::View* parent,
- views::View* child);
-
- private:
- void Init();
-
- views::View* contents_;
- views::Label* title_label_;
- views::Label* description_label_;
- views::Separator* separator_;
-
- // True if we should show a separator line below the contents of this
- // section.
- bool show_separator_;
-
- // True if this section should have a highlighted treatment to draw the
- // user's attention.
- bool highlighted_;
-
- DISALLOW_COPY_AND_ASSIGN(OptionsGroupView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_OPTIONS_OPTIONS_GROUP_VIEW_H__
« no previous file with comments | « chrome/browser/ui/views/options/managed_prefs_banner_view.cc ('k') | chrome/browser/ui/views/options/options_group_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698