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

Side by Side Diff: ui/views/examples/tree_view_example.h

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/examples/textfield_example.cc ('k') | ui/views/examples/tree_view_example.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_EXAMPLES_TREE_VIEW_EXAMPLE_H_ 5 #ifndef UI_VIEWS_EXAMPLES_TREE_VIEW_EXAMPLE_H_
6 #define UI_VIEWS_EXAMPLES_TREE_VIEW_EXAMPLE_H_ 6 #define UI_VIEWS_EXAMPLES_TREE_VIEW_EXAMPLE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/base/models/simple_menu_model.h" 10 #include "ui/base/models/simple_menu_model.h"
(...skipping 30 matching lines...) Expand all
41 ID_ADD 41 ID_ADD
42 }; 42 };
43 43
44 // Adds a new node. 44 // Adds a new node.
45 void AddNewNode(); 45 void AddNewNode();
46 46
47 // Non-const version of IsCommandIdEnabled. 47 // Non-const version of IsCommandIdEnabled.
48 bool IsCommandIdEnabled(int command_id); 48 bool IsCommandIdEnabled(int command_id);
49 49
50 // ButtonListener: 50 // ButtonListener:
51 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE; 51 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE;
52 52
53 // TreeViewController: 53 // TreeViewController:
54 virtual void OnTreeViewSelectionChanged(TreeView* tree_view) OVERRIDE; 54 virtual void OnTreeViewSelectionChanged(TreeView* tree_view) OVERRIDE;
55 virtual bool CanEdit(TreeView* tree_view, ui::TreeModelNode* node) OVERRIDE; 55 virtual bool CanEdit(TreeView* tree_view, ui::TreeModelNode* node) OVERRIDE;
56 56
57 // ContextMenuController: 57 // ContextMenuController:
58 virtual void ShowContextMenuForView(View* source, 58 virtual void ShowContextMenuForView(View* source,
59 const gfx::Point& point) OVERRIDE; 59 const gfx::Point& point) OVERRIDE;
60 60
61 // SimpleMenuModel::Delegate: 61 // SimpleMenuModel::Delegate:
(...skipping 18 matching lines...) Expand all
80 80
81 scoped_ptr<MenuRunner> context_menu_runner_; 81 scoped_ptr<MenuRunner> context_menu_runner_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(TreeViewExample); 83 DISALLOW_COPY_AND_ASSIGN(TreeViewExample);
84 }; 84 };
85 85
86 } // namespace examples 86 } // namespace examples
87 } // namespace views 87 } // namespace views
88 88
89 #endif // UI_VIEWS_EXAMPLES_TREE_VIEW_EXAMPLE_H_ 89 #endif // UI_VIEWS_EXAMPLES_TREE_VIEW_EXAMPLE_H_
OLDNEW
« no previous file with comments | « ui/views/examples/textfield_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