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

Unified Diff: ui/views/examples/tree_view_example.h

Issue 2264403006: Update ui/views menus to use async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review Updates Created 4 years, 4 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/views/examples/menu_example.cc ('k') | ui/views/examples/tree_view_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/tree_view_example.h
diff --git a/ui/views/examples/tree_view_example.h b/ui/views/examples/tree_view_example.h
index 27d910b614e7e59283cc3ac4f0ee47f57c56a7d6..b9ced1984077b076c7502761e1a2f04ee9a50928 100644
--- a/ui/views/examples/tree_view_example.h
+++ b/ui/views/examples/tree_view_example.h
@@ -13,6 +13,10 @@
#include "ui/views/controls/tree/tree_view_controller.h"
#include "ui/views/examples/example_base.h"
+namespace ui {
+class SimpleMenuModel;
+}
+
namespace views {
class LabelButton;
@@ -77,6 +81,7 @@ class VIEWS_EXAMPLES_EXPORT TreeViewExample
ui::TreeNodeModel<NodeType> model_;
+ std::unique_ptr<ui::SimpleMenuModel> context_menu_model_;
std::unique_ptr<MenuRunner> context_menu_runner_;
DISALLOW_COPY_AND_ASSIGN(TreeViewExample);
« no previous file with comments | « ui/views/examples/menu_example.cc ('k') | ui/views/examples/tree_view_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698