OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "views/widget/root_view.h" | 5 #include "views/widget/root_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/drag_drop_types.h" | 9 #include "app/drag_drop_types.h" |
10 #include "app/gfx/canvas.h" | |
11 #include "base/keyboard_codes.h" | 10 #include "base/keyboard_codes.h" |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "gfx/canvas.h" |
14 #include "views/fill_layout.h" | 14 #include "views/fill_layout.h" |
15 #include "views/focus/view_storage.h" | 15 #include "views/focus/view_storage.h" |
16 #include "views/widget/widget.h" | 16 #include "views/widget/widget.h" |
17 #include "views/window/window.h" | 17 #include "views/window/window.h" |
18 | 18 |
19 #if defined(OS_LINUX) | 19 #if defined(OS_LINUX) |
20 #include "views/widget/widget_gtk.h" | 20 #include "views/widget/widget_gtk.h" |
21 #endif // defined(OS_LINUX) | 21 #endif // defined(OS_LINUX) |
22 | 22 |
23 namespace views { | 23 namespace views { |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 static_cast<WidgetGtk*>(GetWidget())->window_contents(); | 937 static_cast<WidgetGtk*>(GetWidget())->window_contents(); |
938 if (!native_view) | 938 if (!native_view) |
939 return; | 939 return; |
940 gdk_window_set_cursor(native_view->window, cursor); | 940 gdk_window_set_cursor(native_view->window, cursor); |
941 if (cursor) | 941 if (cursor) |
942 gdk_cursor_destroy(cursor); | 942 gdk_cursor_destroy(cursor); |
943 #endif | 943 #endif |
944 } | 944 } |
945 | 945 |
946 } // namespace views | 946 } // namespace views |
OLD | NEW |