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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 aura::Window* lost_focus) { | 91 aura::Window* lost_focus) { |
92 for (FocusObserver& observer : focus_observers_) | 92 for (FocusObserver& observer : focus_observers_) |
93 observer.OnWindowFocused(gained_focus, lost_focus); | 93 observer.OnWindowFocused(gained_focus, lost_focus); |
94 } | 94 } |
95 | 95 |
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::NotifyCursorSizeChanged(ui::CursorSize cursor_size) { |
102 for (CursorObserver& observer : cursor_observers_) | 102 for (CursorObserver& observer : cursor_observers_) |
103 observer.OnCursorSetChanged(cursor_set); | 103 observer.OnCursorSizeChanged(cursor_size); |
104 } | 104 } |
105 | 105 |
106 void WMHelper::NotifyCursorDisplayChanged(const display::Display& display) { | 106 void WMHelper::NotifyCursorDisplayChanged(const display::Display& display) { |
107 for (CursorObserver& observer : cursor_observers_) | 107 for (CursorObserver& observer : cursor_observers_) |
108 observer.OnCursorDisplayChanged(display); | 108 observer.OnCursorDisplayChanged(display); |
109 } | 109 } |
110 | 110 |
111 void WMHelper::NotifyMaximizeModeStarted() { | 111 void WMHelper::NotifyMaximizeModeStarted() { |
112 for (MaximizeModeObserver& observer : maximize_mode_observers_) | 112 for (MaximizeModeObserver& observer : maximize_mode_observers_) |
113 observer.OnMaximizeModeStarted(); | 113 observer.OnMaximizeModeStarted(); |
(...skipping 13 matching lines...) Expand all Loading... |
127 for (InputDeviceEventObserver& observer : input_device_event_observers_) | 127 for (InputDeviceEventObserver& observer : input_device_event_observers_) |
128 observer.OnKeyboardDeviceConfigurationChanged(); | 128 observer.OnKeyboardDeviceConfigurationChanged(); |
129 } | 129 } |
130 | 130 |
131 void WMHelper::NotifyDisplayConfigurationChanged() { | 131 void WMHelper::NotifyDisplayConfigurationChanged() { |
132 for (DisplayConfigurationObserver& observer : display_config_observers_) | 132 for (DisplayConfigurationObserver& observer : display_config_observers_) |
133 observer.OnDisplayConfigurationChanged(); | 133 observer.OnDisplayConfigurationChanged(); |
134 } | 134 } |
135 | 135 |
136 } // namespace exo | 136 } // namespace exo |
OLD | NEW |