| 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_COMMON_WM_EVENT_H_ |
| 6 #define ASH_WM_WM_EVENT_H_ | 6 #define ASH_WM_COMMON_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 "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
| 12 | 12 |
| 13 namespace ash { | 13 namespace ash { |
| 14 namespace wm { | 14 namespace wm { |
| 15 | 15 |
| 16 // WMEventType defines a set of operations that can change the | 16 // WMEventType defines a set of operations that can change the |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 WMEventType type() const { return type_; } | 98 WMEventType type() const { return type_; } |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 WMEventType type_; | 101 WMEventType type_; |
| 102 DISALLOW_COPY_AND_ASSIGN(WMEvent); | 102 DISALLOW_COPY_AND_ASSIGN(WMEvent); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 // An WMEvent to request new bounds for the window. | 105 // An WMEvent to request new bounds for the window. |
| 106 class SetBoundsEvent : public WMEvent { | 106 class SetBoundsEvent : public WMEvent { |
| 107 public: | 107 public: |
| 108 SetBoundsEvent(WMEventType type, const gfx::Rect& requested_bounds); | 108 SetBoundsEvent(WMEventType type, const gfx::Rect& requested_bounds); |
| 109 ~SetBoundsEvent() override; | 109 ~SetBoundsEvent() override; |
| 110 | 110 |
| 111 const gfx::Rect& requested_bounds() const { return requested_bounds_; } | 111 const gfx::Rect& requested_bounds() const { return requested_bounds_; } |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 gfx::Rect requested_bounds_; | 114 gfx::Rect requested_bounds_; |
| 115 | 115 |
| 116 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent); | 116 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace wm | 119 } // namespace wm |
| 120 } // namespace ash | 120 } // namespace ash |
| 121 | 121 |
| 122 #endif // ASH_WM_WM_EVENT_H_ | 122 #endif // ASH_WM_COMMON_WM_EVENT_H_ |
| 123 | |
| OLD | NEW |