| 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 "ui/views/mus/desktop_window_tree_host_mus.h" | 5 #include "ui/views/mus/desktop_window_tree_host_mus.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 delegate->CommitVisibility(visible); | 158 delegate->CommitVisibility(visible); |
| 159 | 159 |
| 160 if (visible) { | 160 if (visible) { |
| 161 SetCursor(delegate->GetCursor(), delegate); | 161 SetCursor(delegate->GetCursor(), delegate); |
| 162 } else { | 162 } else { |
| 163 aura::WindowPortMus::Get(window_)->SetCursor( | 163 aura::WindowPortMus::Get(window_)->SetCursor( |
| 164 ui::CursorData(ui::CursorType::kNone)); | 164 ui::CursorData(ui::CursorType::kNone)); |
| 165 } | 165 } |
| 166 } | 166 } |
| 167 | 167 |
| 168 void SetCursorSet(ui::CursorSetType cursor_set, | 168 void SetCursorSet(ui::CursorSet cursor_set, |
| 169 wm::NativeCursorManagerDelegate* delegate) override { | 169 wm::NativeCursorManagerDelegate* delegate) override { |
| 170 // TODO(erg): For now, ignore the difference between SET_NORMAL and | 170 // TODO(erg): For now, ignore the difference between SET_NORMAL and |
| 171 // SET_LARGE here. This feels like a thing that mus should decide instead. | 171 // SET_LARGE here. This feels like a thing that mus should decide instead. |
| 172 // | 172 // |
| 173 // Also, it's NOTIMPLEMENTED() in the desktop version!? Including not | 173 // Also, it's NOTIMPLEMENTED() in the desktop version!? Including not |
| 174 // acknowledging the call in the delegate. | 174 // acknowledging the call in the delegate. |
| 175 NOTIMPLEMENTED(); | 175 NOTIMPLEMENTED(); |
| 176 } | 176 } |
| 177 | 177 |
| 178 void SetMouseEventsEnabled( | 178 void SetMouseEventsEnabled( |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 } | 815 } |
| 816 const gfx::Rect old_bounds_in_pixels = GetBoundsInPixels(); | 816 const gfx::Rect old_bounds_in_pixels = GetBoundsInPixels(); |
| 817 WindowTreeHostMus::SetBoundsInPixels(final_bounds_in_pixels); | 817 WindowTreeHostMus::SetBoundsInPixels(final_bounds_in_pixels); |
| 818 if (old_bounds_in_pixels.size() != final_bounds_in_pixels.size()) { | 818 if (old_bounds_in_pixels.size() != final_bounds_in_pixels.size()) { |
| 819 SendClientAreaToServer(); | 819 SendClientAreaToServer(); |
| 820 SendHitTestMaskToServer(); | 820 SendHitTestMaskToServer(); |
| 821 } | 821 } |
| 822 } | 822 } |
| 823 | 823 |
| 824 } // namespace views | 824 } // namespace views |
| OLD | NEW |