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

Side by Side Diff: ui/views/controls/menu/submenu_view.h

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (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/controls/link.cc ('k') | ui/views/controls/menu/submenu_view.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_CONTROLS_MENU_SUBMENU_VIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_
6 #define UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ 6 #define UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // being processed by the host, so that host is on the stack when we need to 102 // being processed by the host, so that host is on the stack when we need to
103 // close the window. If we closed the window immediately (and deleted it), 103 // close the window. If we closed the window immediately (and deleted it),
104 // when control returned back to host we would crash as host was deleted. 104 // when control returned back to host we would crash as host was deleted.
105 void Hide(); 105 void Hide();
106 106
107 // If mouse capture was grabbed, it is released. Does nothing if mouse was 107 // If mouse capture was grabbed, it is released. Does nothing if mouse was
108 // not captured. 108 // not captured.
109 void ReleaseCapture(); 109 void ReleaseCapture();
110 110
111 // Overriden from View to prevent tab from doing anything. 111 // Overriden from View to prevent tab from doing anything.
112 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& e) OVERRIDE; 112 virtual bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) OVERRIDE;
113 113
114 // Returns the parent menu item we're showing children for. 114 // Returns the parent menu item we're showing children for.
115 MenuItemView* GetMenuItem() const; 115 MenuItemView* GetMenuItem() const;
116 116
117 // Set the drop item and position. 117 // Set the drop item and position.
118 void SetDropMenuItem(MenuItemView* item, 118 void SetDropMenuItem(MenuItemView* item,
119 MenuDelegate::DropPosition position); 119 MenuDelegate::DropPosition position);
120 120
121 // Returns whether the selection should be shown for the specified item. 121 // Returns whether the selection should be shown for the specified item.
122 // The selection is NOT shown during drag and drop when the drop is over 122 // The selection is NOT shown during drag and drop when the drop is over
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 // The submenu's scroll animator 203 // The submenu's scroll animator
204 scoped_ptr<ScrollAnimator> scroll_animator_; 204 scoped_ptr<ScrollAnimator> scroll_animator_;
205 205
206 DISALLOW_COPY_AND_ASSIGN(SubmenuView); 206 DISALLOW_COPY_AND_ASSIGN(SubmenuView);
207 }; 207 };
208 208
209 } // namespace views 209 } // namespace views
210 210
211 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_ 211 #endif // UI_VIEWS_CONTROLS_MENU_SUBMENU_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/link.cc ('k') | ui/views/controls/menu/submenu_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698