| 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_COMMON_WM_WM_EVENT_H_ | 5 #ifndef ASH_COMMON_WM_WM_EVENT_H_ |
| 6 #define ASH_COMMON_WM_WM_EVENT_H_ | 6 #define ASH_COMMON_WM_WM_EVENT_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/common/wm/wm_types.h" | 9 #include "ash/common/wm/wm_types.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 // Bounds of the display has changed. | 85 // Bounds of the display has changed. |
| 86 WM_EVENT_DISPLAY_BOUNDS_CHANGED, | 86 WM_EVENT_DISPLAY_BOUNDS_CHANGED, |
| 87 | 87 |
| 88 // Bounds of the work area has changed. This will not occur when the work | 88 // Bounds of the work area has changed. This will not occur when the work |
| 89 // area has changed as a result of DISPLAY_BOUNDS_CHANGED. | 89 // area has changed as a result of DISPLAY_BOUNDS_CHANGED. |
| 90 WM_EVENT_WORKAREA_BOUNDS_CHANGED, | 90 WM_EVENT_WORKAREA_BOUNDS_CHANGED, |
| 91 | 91 |
| 92 // A user requested to pin a window. | 92 // A user requested to pin a window. |
| 93 WM_EVENT_PIN, | 93 WM_EVENT_PIN, |
| 94 |
| 95 // A user requested to pin a window for a trusted application. This is similar |
| 96 // WM_EVENT_PIN but does not allow user to exit the mode by shortcut key. |
| 97 WM_EVENT_TRUSTED_PIN, |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 class ASH_EXPORT WMEvent { | 100 class ASH_EXPORT WMEvent { |
| 97 public: | 101 public: |
| 98 explicit WMEvent(WMEventType type); | 102 explicit WMEvent(WMEventType type); |
| 99 virtual ~WMEvent(); | 103 virtual ~WMEvent(); |
| 100 | 104 |
| 101 WMEventType type() const { return type_; } | 105 WMEventType type() const { return type_; } |
| 102 | 106 |
| 103 private: | 107 private: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 116 private: | 120 private: |
| 117 gfx::Rect requested_bounds_; | 121 gfx::Rect requested_bounds_; |
| 118 | 122 |
| 119 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent); | 123 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent); |
| 120 }; | 124 }; |
| 121 | 125 |
| 122 } // namespace wm | 126 } // namespace wm |
| 123 } // namespace ash | 127 } // namespace ash |
| 124 | 128 |
| 125 #endif // ASH_COMMON_WM_WM_EVENT_H_ | 129 #endif // ASH_COMMON_WM_WM_EVENT_H_ |
| OLD | NEW |