| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ASH_WM_WM_EVENT_H_ | 5 #ifndef ASH_WM_WM_EVENT_H_ |
| 6 #define ASH_WM_WM_EVENT_H_ | 6 #define ASH_WM_WM_EVENT_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/wm/wm_types.h" | 9 #include "ash/wm/wm_types.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // top/bottom edge. | 47 // top/bottom edge. |
| 48 WM_EVENT_TOGGLE_VERTICAL_MAXIMIZE, | 48 WM_EVENT_TOGGLE_VERTICAL_MAXIMIZE, |
| 49 | 49 |
| 50 // A user requested to toggle horizontal maximize by double clicking | 50 // A user requested to toggle horizontal maximize by double clicking |
| 51 // left/right edge. | 51 // left/right edge. |
| 52 WM_EVENT_TOGGLE_HORIZONTAL_MAXIMIZE, | 52 WM_EVENT_TOGGLE_HORIZONTAL_MAXIMIZE, |
| 53 | 53 |
| 54 // A user requested to toggle fullscreen state. | 54 // A user requested to toggle fullscreen state. |
| 55 WM_EVENT_TOGGLE_FULLSCREEN, | 55 WM_EVENT_TOGGLE_FULLSCREEN, |
| 56 | 56 |
| 57 // A user requested a cycle of dock and snap left. |
| 58 // The way this event is processed is the current window state is used as |
| 59 // the starting state. Assuming normal window start state; if the window can |
| 60 // be snapped left, snap it; otherwise progress to next state. If the window |
| 61 // can be docked left, dock it; otherwise progress to next state. If the |
| 62 // window can be restored; and this isn't the entry condition restore it; |
| 63 // otherwise apply the bounce animation to the window. |
| 64 WM_EVENT_CYCLE_SNAP_DOCK_LEFT, |
| 65 |
| 66 // A user requested a cycle of dock and snap right. |
| 67 // See decription of WM_EVENT_CYCLE_SNAP_DOCK_LEFT. |
| 68 WM_EVENT_CYCLE_SNAP_DOCK_RIGHT, |
| 69 |
| 57 // A user requested to center a window. | 70 // A user requested to center a window. |
| 58 WM_EVENT_CENTER, | 71 WM_EVENT_CENTER, |
| 59 | 72 |
| 60 // TODO(oshima): Investigate if this can be removed from ash. | 73 // TODO(oshima): Investigate if this can be removed from ash. |
| 61 // Widget requested to show in inactive state. | 74 // Widget requested to show in inactive state. |
| 62 WM_EVENT_SHOW_INACTIVE, | 75 WM_EVENT_SHOW_INACTIVE, |
| 63 | 76 |
| 64 // Following events are generated when the workspace envrionment has changed. | 77 // Following events are generated when the workspace envrionment has changed. |
| 65 // The window's state type will not be changed by these events. | 78 // The window's state type will not be changed by these events. |
| 66 | 79 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 gfx::Rect requested_bounds_; | 113 gfx::Rect requested_bounds_; |
| 101 | 114 |
| 102 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent); | 115 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent); |
| 103 }; | 116 }; |
| 104 | 117 |
| 105 } // namespace wm | 118 } // namespace wm |
| 106 } // namespace ash | 119 } // namespace ash |
| 107 | 120 |
| 108 #endif // ASH_WM_WM_EVENT_H_ | 121 #endif // ASH_WM_WM_EVENT_H_ |
| 109 | 122 |
| OLD | NEW |