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

Unified Diff: ui/base/models/simple_combobox_model.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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/base/models/menu_separator_types.h ('k') | ui/base/models/simple_combobox_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/simple_combobox_model.h
diff --git a/ui/base/models/simple_combobox_model.h b/ui/base/models/simple_combobox_model.h
deleted file mode 100644
index beaa04a6b84bc758d40935c383244697668ef367..0000000000000000000000000000000000000000
--- a/ui/base/models/simple_combobox_model.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2014 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 UI_BASE_MODELS_SIMPLE_COMBOBOX_MODEL_H_
-#define UI_BASE_MODELS_SIMPLE_COMBOBOX_MODEL_H_
-
-#include "ui/base/models/combobox_model.h"
-
-#include <vector>
-
-namespace ui {
-
-// A simple data model for a combobox that takes a string16 vector as the items.
-// An empty string will be a separator.
-class UI_BASE_EXPORT SimpleComboboxModel : public ComboboxModel {
- public:
- explicit SimpleComboboxModel(const std::vector<base::string16>& items);
- ~SimpleComboboxModel() override;
-
- // ui::ComboboxModel:
- int GetItemCount() const override;
- base::string16 GetItemAt(int index) override;
- bool IsItemSeparatorAt(int index) override;
- int GetDefaultIndex() const override;
-
- private:
- const std::vector<base::string16> items_;
-
- DISALLOW_COPY_AND_ASSIGN(SimpleComboboxModel);
-};
-
-} // namespace ui
-
-#endif // UI_BASE_MODELS_SIMPLE_COMBOBOX_MODEL_H_
« no previous file with comments | « ui/base/models/menu_separator_types.h ('k') | ui/base/models/simple_combobox_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698