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

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

Issue 9665008: views: Nuke is_mouse_gesture parameter from ContextMenuController::ShowContextMenuForView(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // ButtonListener: 51 // ButtonListener:
52 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE; 52 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE;
53 53
54 // TreeViewController: 54 // TreeViewController:
55 virtual void OnTreeViewSelectionChanged(TreeView* tree_view) OVERRIDE; 55 virtual void OnTreeViewSelectionChanged(TreeView* tree_view) OVERRIDE;
56 virtual bool CanEdit(TreeView* tree_view, ui::TreeModelNode* node) OVERRIDE; 56 virtual bool CanEdit(TreeView* tree_view, ui::TreeModelNode* node) OVERRIDE;
57 57
58 // ContextMenuController: 58 // ContextMenuController:
59 virtual void ShowContextMenuForView(View* source, 59 virtual void ShowContextMenuForView(View* source,
60 const gfx::Point& p, 60 const gfx::Point& point,
61 bool is_mouse_gesture) OVERRIDE; 61 GestureType gesture_type) OVERRIDE;
62 62
63 // SimpleMenuModel::Delegate: 63 // SimpleMenuModel::Delegate:
64 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 64 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
65 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 65 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
66 virtual bool GetAcceleratorForCommandId( 66 virtual bool GetAcceleratorForCommandId(
67 int command_id, 67 int command_id,
68 ui::Accelerator* accelerator) OVERRIDE; 68 ui::Accelerator* accelerator) OVERRIDE;
69 virtual void ExecuteCommand(int command_id) OVERRIDE; 69 virtual void ExecuteCommand(int command_id) OVERRIDE;
70 70
71 // The tree view to be tested. 71 // The tree view to be tested.
(...skipping 10 matching lines...) Expand all
82 82
83 scoped_ptr<MenuRunner> context_menu_runner_; 83 scoped_ptr<MenuRunner> context_menu_runner_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(TreeViewExample); 85 DISALLOW_COPY_AND_ASSIGN(TreeViewExample);
86 }; 86 };
87 87
88 } // namespace examples 88 } // namespace examples
89 } // namespace views 89 } // namespace views
90 90
91 #endif // UI_VIEWS_EXAMPLES_TREE_VIEW_EXAMPLE_H_ 91 #endif // UI_VIEWS_EXAMPLES_TREE_VIEW_EXAMPLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698