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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc

Issue 809903005: ui/views: Cleanup usage of scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no need of Pass() Created 5 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/widget/desktop_aura/desktop_drag_drop_client_aurax11.h" 5 #include "ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h"
6 6
7 #include <X11/Xatom.h> 7 #include <X11/Xatom.h>
8 8
9 #include "base/event_types.h" 9 #include "base/event_types.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 SendXdndLeave(source_current_window_); 804 SendXdndLeave(source_current_window_);
805 source_current_window_ = None; 805 source_current_window_ = None;
806 } 806 }
807 target_current_context_.reset(); 807 target_current_context_.reset();
808 repeat_mouse_move_timer_.Stop(); 808 repeat_mouse_move_timer_.Stop();
809 end_move_loop_timer_.Stop(); 809 end_move_loop_timer_.Stop();
810 } 810 }
811 811
812 scoped_ptr<X11MoveLoop> DesktopDragDropClientAuraX11::CreateMoveLoop( 812 scoped_ptr<X11MoveLoop> DesktopDragDropClientAuraX11::CreateMoveLoop(
813 X11MoveLoopDelegate* delegate) { 813 X11MoveLoopDelegate* delegate) {
814 return scoped_ptr<X11MoveLoop>(new X11WholeScreenMoveLoop(this)); 814 return make_scoped_ptr(new X11WholeScreenMoveLoop(this));
815 } 815 }
816 816
817 XID DesktopDragDropClientAuraX11::FindWindowFor( 817 XID DesktopDragDropClientAuraX11::FindWindowFor(
818 const gfx::Point& screen_point) { 818 const gfx::Point& screen_point) {
819 views::X11TopmostWindowFinder finder; 819 views::X11TopmostWindowFinder finder;
820 ::Window target = finder.FindWindowAt(screen_point); 820 ::Window target = finder.FindWindowAt(screen_point);
821 821
822 if (target == None) 822 if (target == None)
823 return None; 823 return None;
824 824
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 for (int x = 0; x < in_bitmap->width(); ++x) { 1192 for (int x = 0; x < in_bitmap->width(); ++x) {
1193 if (SkColorGetA(in_row[x]) > kMinAlpha) 1193 if (SkColorGetA(in_row[x]) > kMinAlpha)
1194 return true; 1194 return true;
1195 } 1195 }
1196 } 1196 }
1197 1197
1198 return false; 1198 return false;
1199 } 1199 }
1200 1200
1201 } // namespace views 1201 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698