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

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

Issue 8597010: Send fake event when event_type is set to exit menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use xdisplay_ Created 9 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
« no previous file with comments | « ui/base/x/events_x.cc ('k') | views/controls/menu/menu_controller.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 5 #ifndef VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
6 #define VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 6 #define VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 406
407 // Sends a mouse release event to the current |active_mouse_view_| and sets 407 // Sends a mouse release event to the current |active_mouse_view_| and sets
408 // it to null. 408 // it to null.
409 void SendMouseReleaseToActiveView(SubmenuView* event_source, 409 void SendMouseReleaseToActiveView(SubmenuView* event_source,
410 const MouseEvent& event); 410 const MouseEvent& event);
411 411
412 // Sends a mouse capture lost event to the current |active_mouse_view_| and 412 // Sends a mouse capture lost event to the current |active_mouse_view_| and
413 // sets it to null. 413 // sets it to null.
414 void SendMouseCaptureLostToActiveView(); 414 void SendMouseCaptureLostToActiveView();
415 415
416 // Set exit type.
417 void SetExitType(ExitType type);
418
416 // The active instance. 419 // The active instance.
417 static MenuController* active_instance_; 420 static MenuController* active_instance_;
418 421
419 // If true, Run blocks. If false, Run doesn't block and this is used for 422 // If true, Run blocks. If false, Run doesn't block and this is used for
420 // drag and drop. Note that the semantics for drag and drop are slightly 423 // drag and drop. Note that the semantics for drag and drop are slightly
421 // different: cancel timer is kicked off any time the drag moves outside the 424 // different: cancel timer is kicked off any time the drag moves outside the
422 // menu, mouse events do nothing... 425 // menu, mouse events do nothing...
423 bool blocking_run_; 426 bool blocking_run_;
424 427
425 // If true, we're showing. 428 // If true, we're showing.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 View* active_mouse_view_; 502 View* active_mouse_view_;
500 503
501 internal::MenuControllerDelegate* delegate_; 504 internal::MenuControllerDelegate* delegate_;
502 505
503 DISALLOW_COPY_AND_ASSIGN(MenuController); 506 DISALLOW_COPY_AND_ASSIGN(MenuController);
504 }; 507 };
505 508
506 } // namespace views 509 } // namespace views
507 510
508 #endif // VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ 511 #endif // VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/base/x/events_x.cc ('k') | views/controls/menu/menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698