| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_MUS_WS_ACCELERATOR_H_ | 5 #ifndef COMPONENTS_MUS_WS_ACCELERATOR_H_ |
| 6 #define COMPONENTS_MUS_WS_ACCELERATOR_H_ | 6 #define COMPONENTS_MUS_WS_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 11 #include "components/mus/public/interfaces/input_event_matcher.mojom.h" | 12 #include "components/mus/public/interfaces/input_event_matcher.mojom.h" |
| 12 #include "ui/events/event.h" | 13 #include "ui/events/event.h" |
| 13 #include "ui/gfx/geometry/rect_f.h" | 14 #include "ui/gfx/geometry/rect_f.h" |
| 14 | 15 |
| 15 namespace mus { | 16 namespace mus { |
| 16 namespace ws { | 17 namespace ws { |
| 17 | 18 |
| 18 // An Accelerator encompasses an id defined by the client, along with a unique | 19 // An Accelerator encompasses an id defined by the client, along with a unique |
| 19 // mojom::EventMatcher. See WindowManagerClient. | 20 // mojom::EventMatcher. See WindowManagerClient. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 63 |
| 63 base::WeakPtrFactory<Accelerator> weak_factory_; | 64 base::WeakPtrFactory<Accelerator> weak_factory_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(Accelerator); | 66 DISALLOW_COPY_AND_ASSIGN(Accelerator); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace ws | 69 } // namespace ws |
| 69 } // namespace mus | 70 } // namespace mus |
| 70 | 71 |
| 71 #endif // COMPONENTS_MUS_WS_ACCELERATOR_H_ | 72 #endif // COMPONENTS_MUS_WS_ACCELERATOR_H_ |
| OLD | NEW |