OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |