Chromium Code Reviews| Index: ui/wm/core/cursor_manager.cc |
| diff --git a/ui/wm/core/cursor_manager.cc b/ui/wm/core/cursor_manager.cc |
| index 1c16abaf93a5e5aa2fb58aac32fa5c1db34402d8..c3445ea1a4040ffa6e9e6a1c73e78eb540b5159d 100644 |
| --- a/ui/wm/core/cursor_manager.cc |
| +++ b/ui/wm/core/cursor_manager.cc |
| @@ -132,8 +132,11 @@ bool CursorManager::IsCursorVisible() const { |
| void CursorManager::SetCursorSet(ui::CursorSetType cursor_set) { |
| state_on_unlock_->set_cursor_set(cursor_set); |
| - if (GetCursorSet() != state_on_unlock_->cursor_set()) |
| + if (GetCursorSet() != state_on_unlock_->cursor_set()) { |
| delegate_->SetCursorSet(state_on_unlock_->cursor_set(), this); |
| + FOR_EACH_OBSERVER(aura::client::CursorClientObserver, observers_, |
| + OnCursorSetChanged(cursor_set)); |
| + } |
| } |
| ui::CursorSetType CursorManager::GetCursorSet() const { |
| @@ -201,6 +204,7 @@ void CursorManager::AddObserver( |
| void CursorManager::RemoveObserver( |
| aura::client::CursorClientObserver* observer) { |
| observers_.RemoveObserver(observer); |
| + LOG(ERROR) << observers_.might_have_observers(); |
|
sky
2016/06/20 15:27:51
remove this.
yoshiki
2016/06/28 02:12:42
Done.
|
| } |
| bool CursorManager::ShouldHideCursorOnKeyEvent( |