| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 void WMHelper::NotifyCursorVisibilityChanged(bool is_visible) { | 104 void WMHelper::NotifyCursorVisibilityChanged(bool is_visible) { |
| 105 for (CursorObserver& observer : cursor_observers_) | 105 for (CursorObserver& observer : cursor_observers_) |
| 106 observer.OnCursorVisibilityChanged(is_visible); | 106 observer.OnCursorVisibilityChanged(is_visible); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void WMHelper::NotifyCursorSetChanged(ui::CursorSetType cursor_set) { | 109 void WMHelper::NotifyCursorSetChanged(ui::CursorSetType cursor_set) { |
| 110 for (CursorObserver& observer : cursor_observers_) | 110 for (CursorObserver& observer : cursor_observers_) |
| 111 observer.OnCursorSetChanged(cursor_set); | 111 observer.OnCursorSetChanged(cursor_set); |
| 112 } | 112 } |
| 113 | 113 |
| 114 void WMHelper::NotifyCursorDisplayChanging(const display::Display& display) { |
| 115 for (CursorObserver& observer : cursor_observers_) |
| 116 observer.OnCursorDisplayChanging(display); |
| 117 } |
| 118 |
| 114 void WMHelper::NotifyMaximizeModeStarted() { | 119 void WMHelper::NotifyMaximizeModeStarted() { |
| 115 for (MaximizeModeObserver& observer : maximize_mode_observers_) | 120 for (MaximizeModeObserver& observer : maximize_mode_observers_) |
| 116 observer.OnMaximizeModeStarted(); | 121 observer.OnMaximizeModeStarted(); |
| 117 } | 122 } |
| 118 | 123 |
| 119 void WMHelper::NotifyMaximizeModeEnding() { | 124 void WMHelper::NotifyMaximizeModeEnding() { |
| 120 for (MaximizeModeObserver& observer : maximize_mode_observers_) | 125 for (MaximizeModeObserver& observer : maximize_mode_observers_) |
| 121 observer.OnMaximizeModeEnding(); | 126 observer.OnMaximizeModeEnding(); |
| 122 } | 127 } |
| 123 | 128 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 135 for (InputDeviceEventObserver& observer : input_device_event_observers_) | 140 for (InputDeviceEventObserver& observer : input_device_event_observers_) |
| 136 observer.OnKeyboardDeviceConfigurationChanged(); | 141 observer.OnKeyboardDeviceConfigurationChanged(); |
| 137 } | 142 } |
| 138 | 143 |
| 139 void WMHelper::NotifyDisplayConfigurationChanged() { | 144 void WMHelper::NotifyDisplayConfigurationChanged() { |
| 140 for (DisplayConfigurationObserver& observer : display_config_observers_) | 145 for (DisplayConfigurationObserver& observer : display_config_observers_) |
| 141 observer.OnDisplayConfigurationChanged(); | 146 observer.OnDisplayConfigurationChanged(); |
| 142 } | 147 } |
| 143 | 148 |
| 144 } // namespace exo | 149 } // namespace exo |
| OLD | NEW |