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 #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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(PostEventDispatchHandler); | 148 DISALLOW_COPY_AND_ASSIGN(PostEventDispatchHandler); |
149 }; | 149 }; |
150 | 150 |
151 } // namespace internal | 151 } // namespace internal |
152 | 152 |
153 // static | 153 // static |
154 ViewsDelegate* ViewsDelegate::views_delegate = NULL; | 154 ViewsDelegate* ViewsDelegate::views_delegate = NULL; |
155 | 155 |
156 // static | 156 // static |
157 const char View::kViewClassName[] = "views/View"; | 157 const char View::kViewClassName[] = "View"; |
158 | 158 |
159 //////////////////////////////////////////////////////////////////////////////// | 159 //////////////////////////////////////////////////////////////////////////////// |
160 // View, public: | 160 // View, public: |
161 | 161 |
162 // Creation and lifetime ------------------------------------------------------- | 162 // Creation and lifetime ------------------------------------------------------- |
163 | 163 |
164 View::View() | 164 View::View() |
165 : owned_by_client_(false), | 165 : owned_by_client_(false), |
166 id_(0), | 166 id_(0), |
167 group_(-1), | 167 group_(-1), |
(...skipping 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2298 ConvertPointToWidget(this, &widget_location); | 2298 ConvertPointToWidget(this, &widget_location); |
2299 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations, | 2299 GetWidget()->RunShellDrag(this, data, widget_location, drag_operations, |
2300 source); | 2300 source); |
2301 return true; | 2301 return true; |
2302 #else | 2302 #else |
2303 return false; | 2303 return false; |
2304 #endif // !defined(OS_MACOSX) | 2304 #endif // !defined(OS_MACOSX) |
2305 } | 2305 } |
2306 | 2306 |
2307 } // namespace views | 2307 } // namespace views |
OLD | NEW |