OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/widget.h" | 5 #include "ui/views/widget/widget.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 return widget; | 216 return widget; |
217 } | 217 } |
218 | 218 |
219 // static | 219 // static |
220 void Widget::SetPureViews(bool pure) { | 220 void Widget::SetPureViews(bool pure) { |
221 use_pure_views = pure; | 221 use_pure_views = pure; |
222 } | 222 } |
223 | 223 |
224 // static | 224 // static |
225 bool Widget::IsPureViews() { | 225 bool Widget::IsPureViews() { |
226 #if defined(USE_AURA) || defined(TOUCH_UI) | 226 #if defined(USE_AURA) |
227 return true; | 227 return true; |
228 #else | 228 #else |
229 return use_pure_views; | 229 return use_pure_views; |
230 #endif | 230 #endif |
231 } | 231 } |
232 | 232 |
233 // static | 233 // static |
234 Widget* Widget::GetWidgetForNativeView(gfx::NativeView native_view) { | 234 Widget* Widget::GetWidgetForNativeView(gfx::NativeView native_view) { |
235 internal::NativeWidgetPrivate* native_widget = | 235 internal::NativeWidgetPrivate* native_widget = |
236 internal::NativeWidgetPrivate::GetNativeWidgetForNativeView(native_view); | 236 internal::NativeWidgetPrivate::GetNativeWidgetForNativeView(native_view); |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1198 | 1198 |
1199 //////////////////////////////////////////////////////////////////////////////// | 1199 //////////////////////////////////////////////////////////////////////////////// |
1200 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1200 // internal::NativeWidgetPrivate, NativeWidget implementation: |
1201 | 1201 |
1202 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1202 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
1203 return this; | 1203 return this; |
1204 } | 1204 } |
1205 | 1205 |
1206 } // namespace internal | 1206 } // namespace internal |
1207 } // namespace views | 1207 } // namespace views |
OLD | NEW |