Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: content/browser/media/capture/cursor_renderer_aura.cc

Issue 1951013003: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Florin's smart pointer fix Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/media/capture/cursor_renderer_aura.h ('k') | content/browser/renderer_host/sandbox_ipc_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698