This source file includes following definitions.
- count_
- GetItemCount
- GetItemAt
#include "ui/views/examples/example_combobox_model.h"
#include "base/strings/utf_string_conversions.h"
namespace views {
namespace examples {
ExampleComboboxModel::ExampleComboboxModel(const char** strings, int count)
: strings_(strings), count_(count) {
}
ExampleComboboxModel::~ExampleComboboxModel() {
}
int ExampleComboboxModel::GetItemCount() const {
return count_;
}
base::string16 ExampleComboboxModel::GetItemAt(int index) {
return base::ASCIIToUTF16(strings_[index]);
}
}
}