| 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 "views/widget/widget.h" | 5 #include "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/l10n/l10n_font_util.h" | 10 #include "ui/base/l10n/l10n_font_util.h" |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 return widget; | 208 return widget; |
| 209 } | 209 } |
| 210 | 210 |
| 211 // static | 211 // static |
| 212 void Widget::SetPureViews(bool pure) { | 212 void Widget::SetPureViews(bool pure) { |
| 213 use_pure_views = pure; | 213 use_pure_views = pure; |
| 214 } | 214 } |
| 215 | 215 |
| 216 // static | 216 // static |
| 217 bool Widget::IsPureViews() { | 217 bool Widget::IsPureViews() { |
| 218 #if defined(TOUCH_UI) | 218 #if defined(USE_ONLY_PURE_VIEWS) |
| 219 return true; | 219 return true; |
| 220 #else | 220 #else |
| 221 return use_pure_views; | 221 return use_pure_views; |
| 222 #endif | 222 #endif |
| 223 } | 223 } |
| 224 | 224 |
| 225 // static | 225 // static |
| 226 Widget* Widget::GetWidgetForNativeView(gfx::NativeView native_view) { | 226 Widget* Widget::GetWidgetForNativeView(gfx::NativeView native_view) { |
| 227 internal::NativeWidgetPrivate* native_widget = | 227 internal::NativeWidgetPrivate* native_widget = |
| 228 internal::NativeWidgetPrivate::GetNativeWidgetForNativeView(native_view); | 228 internal::NativeWidgetPrivate::GetNativeWidgetForNativeView(native_view); |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 | 1145 |
| 1146 //////////////////////////////////////////////////////////////////////////////// | 1146 //////////////////////////////////////////////////////////////////////////////// |
| 1147 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1147 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1148 | 1148 |
| 1149 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1149 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1150 return this; | 1150 return this; |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 } // namespace internal | 1153 } // namespace internal |
| 1154 } // namespace views | 1154 } // namespace views |
| OLD | NEW |