OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 "content/browser/media/capture/cursor_renderer_aura.h" | 5 #include "content/browser/media/capture/cursor_renderer_aura.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <cmath> | 10 #include <cmath> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/time/default_tick_clock.h" | 13 #include "base/time/default_tick_clock.h" |
| 14 #include "skia/ext/image_operations.h" |
14 #include "ui/aura/client/screen_position_client.h" | 15 #include "ui/aura/client/screen_position_client.h" |
15 #include "ui/aura/env.h" | 16 #include "ui/aura/env.h" |
16 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
17 #include "ui/aura/window_tree_host.h" | 18 #include "ui/aura/window_tree_host.h" |
18 #include "ui/base/cursor/cursors_aura.h" | 19 #include "ui/base/cursor/cursors_aura.h" |
19 #include "ui/compositor/dip_util.h" | 20 #include "ui/compositor/dip_util.h" |
20 #include "ui/compositor/layer.h" | 21 #include "ui/compositor/layer.h" |
21 #include "ui/events/event_utils.h" | 22 #include "ui/events/event_utils.h" |
22 #include "ui/wm/public/activation_client.h" | 23 #include "ui/wm/public/activation_client.h" |
23 | 24 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 242 |
242 void CursorRendererAura::OnWindowDestroying(aura::Window* window) { | 243 void CursorRendererAura::OnWindowDestroying(aura::Window* window) { |
243 DCHECK_EQ(window_, window); | 244 DCHECK_EQ(window_, window); |
244 if (cursor_display_setting_ == kCursorEnabledOnMouseMovement) | 245 if (cursor_display_setting_ == kCursorEnabledOnMouseMovement) |
245 window_->RemovePreTargetHandler(this); | 246 window_->RemovePreTargetHandler(this); |
246 window_->RemoveObserver(this); | 247 window_->RemoveObserver(this); |
247 window_ = nullptr; | 248 window_ = nullptr; |
248 } | 249 } |
249 | 250 |
250 } // namespace content | 251 } // namespace content |
OLD | NEW |