| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |