Index: ui/views/controls/menu/menu_runner_core.h |
diff --git a/ui/views/controls/menu/menu_runner_core.h b/ui/views/controls/menu/menu_runner_core.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..93bdb95590864754f3129bf13bb570bf9cc77d28 |
--- /dev/null |
+++ b/ui/views/controls/menu/menu_runner_core.h |
@@ -0,0 +1,30 @@ |
+// 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_MENU_MENU_RUNNER_CORE_H_ |
+#define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_CORE_H_ |
+ |
+#include "base/basictypes.h" |
+#include "ui/views/controls/menu/menu_item_view.h" |
+ |
+namespace views { |
+ |
+class MenuButton; |
+class Widget; |
+ |
+// An interface which defines RunMenuAt. |
+class VIEWS_EXPORT MenuRunnerCore { |
sky
2013/12/09 14:54:04
How about MenuRunnerImpl?
hajimehoshi
2013/12/09 14:58:31
(internal::)MenuRunnerImpl already exists.
hajimehoshi
2013/12/10 06:04:25
Done. (MenuRunnerHandler)
|
+ public: |
+ virtual MenuRunner::RunResult RunMenuAt(Widget* parent, |
+ MenuButton* button, |
+ const gfx::Rect& bounds, |
+ MenuItemView::AnchorPosition anchor, |
+ ui::MenuSourceType source_type, |
+ int32 types) = 0; |
+ virtual ~MenuRunnerCore() {} |
+}; |
+ |
+} // namespace views |
+ |
+#endif // UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_CORE_H_ |