| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
| 16 #include "components/mus/public/cpp/mus_public_export.h" |
| 16 #include "components/mus/public/interfaces/cursor.mojom.h" | 17 #include "components/mus/public/interfaces/cursor.mojom.h" |
| 17 #include "components/mus/public/interfaces/event_matcher.mojom.h" | 18 #include "components/mus/public/interfaces/event_matcher.mojom.h" |
| 18 #include "components/mus/public/interfaces/input_events.mojom.h" | 19 #include "components/mus/public/interfaces/input_events.mojom.h" |
| 19 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" | 20 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" |
| 20 | 21 |
| 21 namespace gfx { | 22 namespace gfx { |
| 22 class Insets; | 23 class Insets; |
| 23 class Rect; | 24 class Rect; |
| 24 class Vector2d; | 25 class Vector2d; |
| 25 } | 26 } |
| 26 | 27 |
| 27 namespace ui { | 28 namespace ui { |
| 28 class Event; | 29 class Event; |
| 29 } | 30 } |
| 30 | 31 |
| 31 namespace mus { | 32 namespace mus { |
| 32 | 33 |
| 33 class Window; | 34 class Window; |
| 34 | 35 |
| 35 // See the mojom with the same name for details on the functions in this | 36 // See the mojom with the same name for details on the functions in this |
| 36 // interface. | 37 // interface. |
| 37 class WindowManagerClient { | 38 class MUS_PUBLIC_EXPORT WindowManagerClient { |
| 38 public: | 39 public: |
| 39 virtual void SetFrameDecorationValues( | 40 virtual void SetFrameDecorationValues( |
| 40 mojom::FrameDecorationValuesPtr values) = 0; | 41 mojom::FrameDecorationValuesPtr values) = 0; |
| 41 virtual void SetNonClientCursor(Window* window, | 42 virtual void SetNonClientCursor(Window* window, |
| 42 mojom::Cursor non_client_cursor) = 0; | 43 mojom::Cursor non_client_cursor) = 0; |
| 43 | 44 |
| 44 virtual void AddAccelerator(uint32_t id, | 45 virtual void AddAccelerator(uint32_t id, |
| 45 mojom::EventMatcherPtr event_matcher, | 46 mojom::EventMatcherPtr event_matcher, |
| 46 const base::Callback<void(bool)>& callback) = 0; | 47 const base::Callback<void(bool)>& callback) = 0; |
| 47 virtual void RemoveAccelerator(uint32_t id) = 0; | 48 virtual void RemoveAccelerator(uint32_t id) = 0; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 93 |
| 93 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0; | 94 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0; |
| 94 | 95 |
| 95 protected: | 96 protected: |
| 96 virtual ~WindowManagerDelegate() {} | 97 virtual ~WindowManagerDelegate() {} |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 } // namespace mus | 100 } // namespace mus |
| 100 | 101 |
| 101 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ | 102 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ |
| OLD | NEW |