Index: ui/views/controls/combobox/combobox_menu_runner.h |
diff --git a/ui/views/controls/combobox/combobox_menu_runner.h b/ui/views/controls/combobox/combobox_menu_runner.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c16546ffda25e749dac0eab55507d7e4120a0d93 |
--- /dev/null |
+++ b/ui/views/controls/combobox/combobox_menu_runner.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2013 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_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_MENU_RUNNER_H_ |
+#define UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_MENU_RUNNER_H_ |
+ |
+#include "ui/base/ui_base_types.h" |
+#include "ui/views/controls/menu/menu_runner.h" |
+ |
+namespace gfx { |
+class Rect; |
+} |
+ |
+namespace views { |
+ |
+class Combobox; |
+class MenuRunner; |
+ |
+// An interface to run a dropdown menu for a combobox. |
+class ComboboxMenuRunner { |
sky
2013/12/06 17:12:23
I like this, but I think it should be done at the
hajimehoshi
2013/12/09 07:44:28
Done. (Added MenuRunnerCore to implement RunMenuAt
|
+ public: |
+ virtual ~ComboboxMenuRunner() {} |
+ |
+ // Runs the menu for a combobox. |
+ virtual MenuRunner::RunResult Run(Combobox* combobox, |
+ MenuRunner* menu_runner, |
+ const gfx::Rect& bounds, |
+ ui::MenuSourceType source_type) = 0; |
+}; |
+ |
+} // namespace views |
+ |
+#endif // UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_MENU_RUNNER_H_ |