| 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 #include "components/exo/wm_helper.h" | 5 #include "components/exo/wm_helper.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 | 8 |
| 9 namespace exo { | 9 namespace exo { |
| 10 namespace { | 10 namespace { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void WMHelper::NotifyCursorVisibilityChanged(bool is_visible) { | 96 void WMHelper::NotifyCursorVisibilityChanged(bool is_visible) { |
| 97 for (CursorObserver& observer : cursor_observers_) | 97 for (CursorObserver& observer : cursor_observers_) |
| 98 observer.OnCursorVisibilityChanged(is_visible); | 98 observer.OnCursorVisibilityChanged(is_visible); |
| 99 } | 99 } |
| 100 | 100 |
| 101 void WMHelper::NotifyCursorSetChanged(ui::CursorSetType cursor_set) { | 101 void WMHelper::NotifyCursorSetChanged(ui::CursorSetType cursor_set) { |
| 102 for (CursorObserver& observer : cursor_observers_) | 102 for (CursorObserver& observer : cursor_observers_) |
| 103 observer.OnCursorSetChanged(cursor_set); | 103 observer.OnCursorSetChanged(cursor_set); |
| 104 } | 104 } |
| 105 | 105 |
| 106 void WMHelper::NotifyCursorDisplayChanged(const display::Display& display) { |
| 107 for (CursorObserver& observer : cursor_observers_) |
| 108 observer.OnCursorDisplayChanged(display); |
| 109 } |
| 110 |
| 106 void WMHelper::NotifyMaximizeModeStarted() { | 111 void WMHelper::NotifyMaximizeModeStarted() { |
| 107 for (MaximizeModeObserver& observer : maximize_mode_observers_) | 112 for (MaximizeModeObserver& observer : maximize_mode_observers_) |
| 108 observer.OnMaximizeModeStarted(); | 113 observer.OnMaximizeModeStarted(); |
| 109 } | 114 } |
| 110 | 115 |
| 111 void WMHelper::NotifyMaximizeModeEnding() { | 116 void WMHelper::NotifyMaximizeModeEnding() { |
| 112 for (MaximizeModeObserver& observer : maximize_mode_observers_) | 117 for (MaximizeModeObserver& observer : maximize_mode_observers_) |
| 113 observer.OnMaximizeModeEnding(); | 118 observer.OnMaximizeModeEnding(); |
| 114 } | 119 } |
| 115 | 120 |
| 116 void WMHelper::NotifyMaximizeModeEnded() { | 121 void WMHelper::NotifyMaximizeModeEnded() { |
| 117 for (MaximizeModeObserver& observer : maximize_mode_observers_) | 122 for (MaximizeModeObserver& observer : maximize_mode_observers_) |
| 118 observer.OnMaximizeModeEnded(); | 123 observer.OnMaximizeModeEnded(); |
| 119 } | 124 } |
| 120 | 125 |
| 121 void WMHelper::NotifyKeyboardDeviceConfigurationChanged() { | 126 void WMHelper::NotifyKeyboardDeviceConfigurationChanged() { |
| 122 for (InputDeviceEventObserver& observer : input_device_event_observers_) | 127 for (InputDeviceEventObserver& observer : input_device_event_observers_) |
| 123 observer.OnKeyboardDeviceConfigurationChanged(); | 128 observer.OnKeyboardDeviceConfigurationChanged(); |
| 124 } | 129 } |
| 125 | 130 |
| 126 void WMHelper::NotifyDisplayConfigurationChanged() { | 131 void WMHelper::NotifyDisplayConfigurationChanged() { |
| 127 for (DisplayConfigurationObserver& observer : display_config_observers_) | 132 for (DisplayConfigurationObserver& observer : display_config_observers_) |
| 128 observer.OnDisplayConfigurationChanged(); | 133 observer.OnDisplayConfigurationChanged(); |
| 129 } | 134 } |
| 130 | 135 |
| 131 } // namespace exo | 136 } // namespace exo |
| OLD | NEW |