| 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 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
| 9 | 9 |
| 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. | 10 // Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class. |
| 11 #undef RootWindow | 11 #undef RootWindow |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "ui/aura/client/window_move_client.h" | 16 #include "ui/aura/client/window_move_client.h" |
| 17 #include "ui/gfx/point.h" | 17 #include "ui/gfx/point.h" |
| 18 #include "ui/views/views_export.h" | 18 #include "ui/views/views_export.h" |
| 19 #include "ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h" | 19 #include "ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h" |
| 20 #include "ui/views/widget/desktop_aura/x11_whole_screen_move_loop_delegate.h" | 20 #include "ui/views/widget/desktop_aura/x11_whole_screen_move_loop_delegate.h" |
| 21 | 21 |
| 22 namespace aura { | 22 namespace aura { |
| 23 class RootWindow; | 23 class RootWindow; |
| 24 } | 24 } |
| 25 | 25 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 54 | 54 |
| 55 // Our cursor offset from the top left window origin when the drag | 55 // Our cursor offset from the top left window origin when the drag |
| 56 // started. Used to calculate the window's new bounds relative to the current | 56 // started. Used to calculate the window's new bounds relative to the current |
| 57 // location of the cursor. | 57 // location of the cursor. |
| 58 gfx::Vector2d window_offset_; | 58 gfx::Vector2d window_offset_; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace views | 61 } // namespace views |
| 62 | 62 |
| 63 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_ | 63 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_ |
| OLD | NEW |