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

Side by Side Diff: chrome/views/chrome_menu.h

Issue 9042: Adds support for autoscrolling on drag to bookmark tree/table.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_CHROME_MENU_H__ 5 #ifndef CHROME_VIEWS_CHROME_MENU_H__
6 #define CHROME_VIEWS_CHROME_MENU_H__ 6 #define CHROME_VIEWS_CHROME_MENU_H__
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/gfx/point.h" 10 #include "base/gfx/point.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // and does NOT block the caller. Instead the delegate is notified when the 200 // and does NOT block the caller. Instead the delegate is notified when the
201 // menu closes via the DropMenuClosed method. 201 // menu closes via the DropMenuClosed method.
202 202
203 class MenuItemView : public View { 203 class MenuItemView : public View {
204 friend class MenuController; 204 friend class MenuController;
205 205
206 public: 206 public:
207 // ID used to identify menu items. 207 // ID used to identify menu items.
208 static const int kMenuItemViewID; 208 static const int kMenuItemViewID;
209 209
210 // Used to determine whether a drop is on an item or before/after it. If
211 // a drop occurs kDropBetweenPixels from the top/bottom it is considered
212 // before/after the menu item, otherwise it is on the item.
213 static const int kDropBetweenPixels;
214
215 // If true SetNestableTasksAllowed(true) is invoked before MessageLoop::Run 210 // If true SetNestableTasksAllowed(true) is invoked before MessageLoop::Run
216 // is invoked. This is only useful for testing and defaults to false. 211 // is invoked. This is only useful for testing and defaults to false.
217 static bool allow_task_nesting_during_run_; 212 static bool allow_task_nesting_during_run_;
218 213
219 // Different types of menu items. 214 // Different types of menu items.
220 enum Type { 215 enum Type {
221 NORMAL, 216 NORMAL,
222 SUBMENU, 217 SUBMENU,
223 CHECKBOX, 218 CHECKBOX,
224 RADIO, 219 RADIO,
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 // underway. 931 // underway.
937 scoped_ptr<MenuScrollTask> scroll_task_; 932 scoped_ptr<MenuScrollTask> scroll_task_;
938 933
939 DISALLOW_EVIL_CONSTRUCTORS(MenuController); 934 DISALLOW_EVIL_CONSTRUCTORS(MenuController);
940 }; 935 };
941 936
942 } // namespace views 937 } // namespace views
943 938
944 #endif // CHROME_VIEWS_CHROME_MENU_H__ 939 #endif // CHROME_VIEWS_CHROME_MENU_H__
945 940
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698