From ab79692f684d05b53fa99d68f370e24c9aa5acf1 Mon Sep 17 00:00:00 2001 From: "saintlou@chromium.org" Date: Wed, 20 Apr 2011 15:38:02 +0000 Subject: Removing unused class. Deprecated when we moved to web ui prefs BUG=none TEST=none Review URL: http://codereview.chromium.org/6877065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82293 0039d316-1c4b-4281-b951-d872f2087c98 --- views/controls/listbox/listbox.h | 70 ---------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 views/controls/listbox/listbox.h (limited to 'views/controls/listbox/listbox.h') diff --git a/views/controls/listbox/listbox.h b/views/controls/listbox/listbox.h deleted file mode 100644 index b029bde..0000000 --- a/views/controls/listbox/listbox.h +++ /dev/null @@ -1,70 +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 VIEWS_CONTROLS_LISTBOX_LISTBOX_H_ -#define VIEWS_CONTROLS_LISTBOX_LISTBOX_H_ -#pragma once - -#include "build/build_config.h" - -#include -#include - -#include "base/string16.h" -#include "views/view.h" - -namespace views { - -class NativeListboxWrapper; - -// A Listbox is a view that displays multiple rows of fixed strings. -// Exactly one of these strings is shown as selected at all times. -class Listbox : public View { - public: - // An interface implemented by an object to let it know that a listbox - // selection has changed. - class Listener { - public: - // This is called if the user changes the current selection of the - // listbox. - virtual void ListboxSelectionChanged(Listbox* sender) = 0; - }; - - // Creates a new listbox, given the list of strings. |listener| can be NULL. - // Listbox does not take ownership of |listener|. - Listbox(const std::vector& strings, Listbox::Listener* listener); - virtual ~Listbox(); - - // Returns the number of rows in the table. - int GetRowCount() const; - - // Returns the 0-based index of the currently selected row, or -1 if nothing - // is selected. Note that as soon as a row has been selected once, there will - // always be a selected row. - int SelectedRow() const; - - // Selects the specified row. Note that this does NOT call the listener's - // |ListboxSelectionChanged()| method. - void SelectRow(int row); - - protected: - virtual NativeListboxWrapper* CreateWrapper(); - virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); - - private: - // Data stored in the listbox. - std::vector strings_; - - // Listens to selection changes. - Listbox::Listener* listener_; - - // The object that actually implements the table. - NativeListboxWrapper* native_wrapper_; - - DISALLOW_COPY_AND_ASSIGN(Listbox); -}; - -} // namespace views - -#endif // VIEWS_CONTROLS_LISTBOX_LISTBOX_H_ -- cgit v1.1