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

Unified Diff: ui/views/controls/combobox/native_combobox_wrapper.h

Issue 9875001: views: Rename Combobox "selected getter/setter" accessors to something more accurate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: combo box -> combobox Created 8 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
« no previous file with comments | « ui/views/controls/combobox/native_combobox_win.cc ('k') | ui/views/examples/combobox_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/combobox/native_combobox_wrapper.h
diff --git a/ui/views/controls/combobox/native_combobox_wrapper.h b/ui/views/controls/combobox/native_combobox_wrapper.h
index f11a2f617e77085baed5400265ee918624ad846d..5b7be8b07d86d37ef48091c73c000a85bbb843d1 100644
--- a/ui/views/controls/combobox/native_combobox_wrapper.h
+++ b/ui/views/controls/combobox/native_combobox_wrapper.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -24,35 +24,34 @@ class VIEWS_EXPORT NativeComboboxWrapper {
// Updates the combobox's content from its model.
virtual void UpdateFromModel() = 0;
- // Updates the displayed selected item from the associated Combobox.
- virtual void UpdateSelectedItem() = 0;
+ // Updates the selected index from the associated combobox.
+ virtual void UpdateSelectedIndex() = 0;
// Updates the enabled state of the combobox from the associated view.
virtual void UpdateEnabled() = 0;
- // Gets the selected index.
- virtual int GetSelectedItem() const = 0;
+ // Returns the selected index.
+ virtual int GetSelectedIndex() const = 0;
- // Returns true if the Combobox dropdown is open.
+ // Returns true if the combobox dropdown is open.
virtual bool IsDropdownOpen() const = 0;
// Returns the preferred size of the combobox.
virtual gfx::Size GetPreferredSize() = 0;
- // Retrieves the views::View that hosts the native control.
+ // Retrieves the view that hosts the native control.
virtual View* GetView() = 0;
// Sets the focus to the button.
virtual void SetFocus() = 0;
- // Invoked when a key is pressed/release on Combobox. Subclasser
- // should return true if the event has been processed and false
- // otherwise.
+ // Invoked when a key is pressed/release on combobox. Subclasser should
+ // return true if the event has been processed and false otherwise.
// See also View::OnKeyPressed/OnKeyReleased.
virtual bool HandleKeyPressed(const views::KeyEvent& e) = 0;
virtual bool HandleKeyReleased(const views::KeyEvent& e) = 0;
- // Invoked when focus is being moved from or to the Combobox.
+ // Invoked when focus is being moved from or to the combobox.
// See also View::OnFocus/OnBlur.
virtual void HandleFocus() = 0;
virtual void HandleBlur() = 0;
« no previous file with comments | « ui/views/controls/combobox/native_combobox_win.cc ('k') | ui/views/examples/combobox_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698