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

Side by Side Diff: ui/views/view.cc

Issue 23533057: Makes native_widget_types forward declare ui::Cursor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git cl change Created 7 years, 3 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 | Annotate | Revision Log
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 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. 5 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first.
6 6
7 #include "ui/views/view.h" 7 #include "ui/views/view.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 25 matching lines...) Expand all
36 #include "ui/views/background.h" 36 #include "ui/views/background.h"
37 #include "ui/views/context_menu_controller.h" 37 #include "ui/views/context_menu_controller.h"
38 #include "ui/views/drag_controller.h" 38 #include "ui/views/drag_controller.h"
39 #include "ui/views/layout/layout_manager.h" 39 #include "ui/views/layout/layout_manager.h"
40 #include "ui/views/views_delegate.h" 40 #include "ui/views/views_delegate.h"
41 #include "ui/views/widget/native_widget_private.h" 41 #include "ui/views/widget/native_widget_private.h"
42 #include "ui/views/widget/root_view.h" 42 #include "ui/views/widget/root_view.h"
43 #include "ui/views/widget/tooltip_manager.h" 43 #include "ui/views/widget/tooltip_manager.h"
44 #include "ui/views/widget/widget.h" 44 #include "ui/views/widget/widget.h"
45 45
46 #if defined(USE_AURA)
47 #include "ui/base/cursor/cursor.h"
48 #endif
49
46 #if defined(OS_WIN) 50 #if defined(OS_WIN)
47 #include "base/win/scoped_gdi_object.h" 51 #include "base/win/scoped_gdi_object.h"
48 #endif 52 #endif
49 53
50 namespace { 54 namespace {
51 55
52 // Whether to use accelerated compositing when necessary (e.g. when a view has a 56 // Whether to use accelerated compositing when necessary (e.g. when a view has a
53 // transformation). 57 // transformation).
54 #if defined(USE_AURA) 58 #if defined(USE_AURA)
55 bool use_acceleration_when_possible = true; 59 bool use_acceleration_when_possible = true;
(...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2320 ConvertPointToWidget(this, &widget_location); 2324 ConvertPointToWidget(this, &widget_location);
2321 widget->RunShellDrag(this, data, widget_location, drag_operations, source); 2325 widget->RunShellDrag(this, data, widget_location, drag_operations, source);
2322 // WARNING: we may have been deleted. 2326 // WARNING: we may have been deleted.
2323 return true; 2327 return true;
2324 #else 2328 #else
2325 return false; 2329 return false;
2326 #endif // !defined(OS_MACOSX) 2330 #endif // !defined(OS_MACOSX)
2327 } 2331 }
2328 2332
2329 } // namespace views 2333 } // namespace views
OLDNEW
« no previous file with comments | « ui/message_center/views/notification_view.cc ('k') | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698