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

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

Issue 100022: Mouse hover out of context menu should un-select menu item.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « no previous file | chrome/views/controls/menu/chrome_menu.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) 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_CONTROLS_MENU_CHROME_MENU_H_ 5 #ifndef CHROME_VIEWS_CONTROLS_MENU_CHROME_MENU_H_
6 #define CHROME_VIEWS_CONTROLS_MENU_CHROME_MENU_H_ 6 #define CHROME_VIEWS_CONTROLS_MENU_CHROME_MENU_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector>
9 10
10 #include "base/gfx/point.h" 11 #include "base/gfx/point.h"
11 #include "base/gfx/rect.h" 12 #include "base/gfx/rect.h"
12 #include "base/message_loop.h" 13 #include "base/message_loop.h"
13 #include "base/task.h" 14 #include "base/task.h"
14 #include "chrome/common/drag_drop_types.h" 15 #include "chrome/common/drag_drop_types.h"
15 #include "chrome/common/gfx/chrome_font.h" 16 #include "chrome/common/gfx/chrome_font.h"
16 #include "chrome/views/controls/menu/controller.h" 17 #include "chrome/views/controls/menu/controller.h"
17 #include "chrome/views/view.h" 18 #include "chrome/views/view.h"
18 #include "skia/include/SkBitmap.h" 19 #include "skia/include/SkBitmap.h"
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 int press_x_; 926 int press_x_;
926 int press_y_; 927 int press_y_;
927 928
928 // We get a slew of drag updated messages as the mouse is over us. To avoid 929 // We get a slew of drag updated messages as the mouse is over us. To avoid
929 // continually processing whether we can drop, we cache the coordinates. 930 // continually processing whether we can drop, we cache the coordinates.
930 bool valid_drop_coordinates_; 931 bool valid_drop_coordinates_;
931 int drop_x_; 932 int drop_x_;
932 int drop_y_; 933 int drop_y_;
933 int last_drop_operation_; 934 int last_drop_operation_;
934 935
935 // If true, the mouse is over some menu.
936 bool any_menu_contains_mouse_;
937
938 // If true, we're in the middle of invoking ShowAt on a submenu. 936 // If true, we're in the middle of invoking ShowAt on a submenu.
939 bool showing_submenu_; 937 bool showing_submenu_;
940 938
941 // Task for scrolling the menu. If non-null indicates a scroll is currently 939 // Task for scrolling the menu. If non-null indicates a scroll is currently
942 // underway. 940 // underway.
943 scoped_ptr<MenuScrollTask> scroll_task_; 941 scoped_ptr<MenuScrollTask> scroll_task_;
944 942
945 DISALLOW_EVIL_CONSTRUCTORS(MenuController); 943 DISALLOW_EVIL_CONSTRUCTORS(MenuController);
946 }; 944 };
947 945
948 } // namespace views 946 } // namespace views
949 947
950 #endif // CHROME_VIEWS_CONTROLS_MENU_CHROME_MENU_H_ 948 #endif // CHROME_VIEWS_CONTROLS_MENU_CHROME_MENU_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/views/controls/menu/chrome_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698