| 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 #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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 } | 240 } |
| 241 | 241 |
| 242 // static | 242 // static |
| 243 void Widget::GetAllChildWidgets(gfx::NativeView native_view, | 243 void Widget::GetAllChildWidgets(gfx::NativeView native_view, |
| 244 Widgets* children) { | 244 Widgets* children) { |
| 245 internal::NativeWidgetPrivate::GetAllChildWidgets(native_view, children); | 245 internal::NativeWidgetPrivate::GetAllChildWidgets(native_view, children); |
| 246 } | 246 } |
| 247 | 247 |
| 248 // static | 248 // static |
| 249 void Widget::GetAllOwnedWidgets(gfx::NativeView native_view, | 249 void Widget::GetAllOwnedWidgets(gfx::NativeView native_view, |
| 250 Widgets* owned) { | 250 Widgets* owned, |
| 251 internal::NativeWidgetPrivate::GetAllOwnedWidgets(native_view, owned); | 251 bool include_toplevel) { |
| 252 internal::NativeWidgetPrivate::GetAllOwnedWidgets(native_view, owned, |
| 253 include_toplevel); |
| 252 } | 254 } |
| 253 | 255 |
| 254 // static | 256 // static |
| 255 void Widget::ReparentNativeView(gfx::NativeView native_view, | 257 void Widget::ReparentNativeView(gfx::NativeView native_view, |
| 256 gfx::NativeView new_parent) { | 258 gfx::NativeView new_parent) { |
| 257 internal::NativeWidgetPrivate::ReparentNativeView(native_view, new_parent); | 259 internal::NativeWidgetPrivate::ReparentNativeView(native_view, new_parent); |
| 258 } | 260 } |
| 259 | 261 |
| 260 // static | 262 // static |
| 261 int Widget::GetLocalizedContentsWidth(int col_resource_id) { | 263 int Widget::GetLocalizedContentsWidth(int col_resource_id) { |
| (...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1496 | 1498 |
| 1497 //////////////////////////////////////////////////////////////////////////////// | 1499 //////////////////////////////////////////////////////////////////////////////// |
| 1498 // internal::NativeWidgetPrivate, NativeWidget implementation: | 1500 // internal::NativeWidgetPrivate, NativeWidget implementation: |
| 1499 | 1501 |
| 1500 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { | 1502 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { |
| 1501 return this; | 1503 return this; |
| 1502 } | 1504 } |
| 1503 | 1505 |
| 1504 } // namespace internal | 1506 } // namespace internal |
| 1505 } // namespace views | 1507 } // namespace views |
| OLD | NEW |