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

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

Issue 12529012: Context menu on views must show on mouse down for non-WIN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 8 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_CONTROLS_MENU_MENU_CONTROLLER_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 6 #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <list> 10 #include <list>
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 560
561 // How deep we are in nested message loops. This should be at most 2 (when 561 // How deep we are in nested message loops. This should be at most 2 (when
562 // showing a context menu from a menu). 562 // showing a context menu from a menu).
563 int message_loop_depth_; 563 int message_loop_depth_;
564 564
565 views::MenuConfig menu_config_; 565 views::MenuConfig menu_config_;
566 566
567 // The timestamp of the event which closed the menu - or 0 otherwise. 567 // The timestamp of the event which closed the menu - or 0 otherwise.
568 base::TimeDelta closing_event_time_; 568 base::TimeDelta closing_event_time_;
569 569
570 // Time when the menu is first shown.
571 base::TimeTicks menu_start_time_;
572
570 DISALLOW_COPY_AND_ASSIGN(MenuController); 573 DISALLOW_COPY_AND_ASSIGN(MenuController);
571 }; 574 };
572 575
573 } // namespace views 576 } // namespace views
574 577
575 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 578 #endif // UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698