| 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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 SendXdndLeave(source_current_window_); | 803 SendXdndLeave(source_current_window_); |
| 804 source_current_window_ = None; | 804 source_current_window_ = None; |
| 805 } | 805 } |
| 806 target_current_context_.reset(); | 806 target_current_context_.reset(); |
| 807 repeat_mouse_move_timer_.Stop(); | 807 repeat_mouse_move_timer_.Stop(); |
| 808 end_move_loop_timer_.Stop(); | 808 end_move_loop_timer_.Stop(); |
| 809 } | 809 } |
| 810 | 810 |
| 811 scoped_ptr<X11MoveLoop> DesktopDragDropClientAuraX11::CreateMoveLoop( | 811 scoped_ptr<X11MoveLoop> DesktopDragDropClientAuraX11::CreateMoveLoop( |
| 812 X11MoveLoopDelegate* delegate) { | 812 X11MoveLoopDelegate* delegate) { |
| 813 return scoped_ptr<X11MoveLoop>(new X11WholeScreenMoveLoop(this)); | 813 return make_scoped_ptr(new X11WholeScreenMoveLoop(this)); |
| 814 } | 814 } |
| 815 | 815 |
| 816 XID DesktopDragDropClientAuraX11::FindWindowFor( | 816 XID DesktopDragDropClientAuraX11::FindWindowFor( |
| 817 const gfx::Point& screen_point) { | 817 const gfx::Point& screen_point) { |
| 818 views::X11TopmostWindowFinder finder; | 818 views::X11TopmostWindowFinder finder; |
| 819 ::Window target = finder.FindWindowAt(screen_point); | 819 ::Window target = finder.FindWindowAt(screen_point); |
| 820 | 820 |
| 821 if (target == None) | 821 if (target == None) |
| 822 return None; | 822 return None; |
| 823 | 823 |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 for (int x = 0; x < in_bitmap->width(); ++x) { | 1191 for (int x = 0; x < in_bitmap->width(); ++x) { |
| 1192 if (SkColorGetA(in_row[x]) > kMinAlpha) | 1192 if (SkColorGetA(in_row[x]) > kMinAlpha) |
| 1193 return true; | 1193 return true; |
| 1194 } | 1194 } |
| 1195 } | 1195 } |
| 1196 | 1196 |
| 1197 return false; | 1197 return false; |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 } // namespace views | 1200 } // namespace views |
| OLD | NEW |