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

Unified Diff: ui/views/examples/combobox_example.cc

Issue 9838092: ui/base/models: Make ComboboxModel::GetItemCount() a constant function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_rel and reland 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
Index: ui/views/examples/combobox_example.cc
diff --git a/ui/views/examples/combobox_example.cc b/ui/views/examples/combobox_example.cc
index 5a26ddd0468c54ee1a30b2b2aa0e21a783eb5c79..f3923832dbf3234f240bea81c0babff930e20545 100644
--- a/ui/views/examples/combobox_example.cc
+++ b/ui/views/examples/combobox_example.cc
@@ -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.
@@ -19,7 +19,7 @@ class ComboboxModelExample : public ui::ComboboxModel {
virtual ~ComboboxModelExample() {}
// Overridden from ui::ComboboxModel:
- virtual int GetItemCount() OVERRIDE { return 10; }
+ virtual int GetItemCount() const OVERRIDE { return 10; }
virtual string16 GetItemAt(int index) OVERRIDE {
return UTF8ToUTF16(base::StringPrintf("Item %d", index));
}
« no previous file with comments | « ui/views/controls/combobox/native_combobox_views_unittest.cc ('k') | ui/views/examples/example_combobox_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698