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

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

Issue 59383003: Add the button style for combobox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky's review (4) Created 7 years 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/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_

Powered by Google App Engine
This is Rietveld 408576698