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

Unified Diff: ui/views/controls/menu/menu_insertion_delegate.h

Issue 14150005: views: Finally get rid of the deprecated Menu2 API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: ui/views/controls/menu/menu_insertion_delegate.h
diff --git a/ui/views/controls/menu/menu_insertion_delegate.h b/ui/views/controls/menu/menu_insertion_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..b2c91f7b4854bfbefde838052861f4bccc9cc104
--- /dev/null
+++ b/ui/views/controls/menu/menu_insertion_delegate.h
@@ -0,0 +1,21 @@
+// 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_INSERTION_DELEGATE_H_
+#define UI_VIEWS_CONTROLS_MENU_INSERTION_DELEGATE_H_
+
+namespace views {
+
+class MenuInsertionDelegate {
+ public:
+ // Returns the index to insert items into the menu at.
+ virtual int GetInsertionIndex(HMENU native_menu) = 0;
+
+ protected:
+ virtual ~MenuInsertionDelegate() {}
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_CONTROLS_MENU_INSERTION_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698