| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void WMHelper::NotifyCursorSetChanged(ui::CursorSetType cursor_set) { | 99 void WMHelper::NotifyCursorSetChanged(ui::CursorSetType cursor_set) { |
| 100 for (CursorObserver& observer : cursor_observers_) | 100 for (CursorObserver& observer : cursor_observers_) |
| 101 observer.OnCursorSetChanged(cursor_set); | 101 observer.OnCursorSetChanged(cursor_set); |
| 102 } | 102 } |
| 103 | 103 |
| 104 void WMHelper::NotifyMaximizeModeStarted() { | 104 void WMHelper::NotifyMaximizeModeStarted() { |
| 105 for (MaximizeModeObserver& observer : maximize_mode_observers_) | 105 for (MaximizeModeObserver& observer : maximize_mode_observers_) |
| 106 observer.OnMaximizeModeStarted(); | 106 observer.OnMaximizeModeStarted(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void WMHelper::NotifyMaximizeModeEnding() { |
| 110 for (MaximizeModeObserver& observer : maximize_mode_observers_) |
| 111 observer.OnMaximizeModeEnding(); |
| 112 } |
| 113 |
| 109 void WMHelper::NotifyMaximizeModeEnded() { | 114 void WMHelper::NotifyMaximizeModeEnded() { |
| 110 for (MaximizeModeObserver& observer : maximize_mode_observers_) | 115 for (MaximizeModeObserver& observer : maximize_mode_observers_) |
| 111 observer.OnMaximizeModeEnded(); | 116 observer.OnMaximizeModeEnded(); |
| 112 } | 117 } |
| 113 | 118 |
| 114 void WMHelper::NotifyAccessibilityModeChanged() { | 119 void WMHelper::NotifyAccessibilityModeChanged() { |
| 115 for (AccessibilityObserver& observer : accessibility_observers_) | 120 for (AccessibilityObserver& observer : accessibility_observers_) |
| 116 observer.OnAccessibilityModeChanged(); | 121 observer.OnAccessibilityModeChanged(); |
| 117 } | 122 } |
| 118 | 123 |
| 119 void WMHelper::NotifyKeyboardDeviceConfigurationChanged() { | 124 void WMHelper::NotifyKeyboardDeviceConfigurationChanged() { |
| 120 for (InputDeviceEventObserver& observer : input_device_event_observers_) | 125 for (InputDeviceEventObserver& observer : input_device_event_observers_) |
| 121 observer.OnKeyboardDeviceConfigurationChanged(); | 126 observer.OnKeyboardDeviceConfigurationChanged(); |
| 122 } | 127 } |
| 123 | 128 |
| 124 } // namespace exo | 129 } // namespace exo |
| OLD | NEW |