| 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/controls/native/native_view_host.h" | 5 #include "ui/views/controls/native/native_view_host.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/accessibility/ax_enums.h" |
| 8 #include "ui/base/cursor/cursor.h" | 9 #include "ui/base/cursor/cursor.h" |
| 9 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
| 10 #include "ui/views/accessibility/native_view_accessibility.h" | 11 #include "ui/views/accessibility/native_view_accessibility.h" |
| 11 #include "ui/views/controls/native/native_view_host_wrapper.h" | 12 #include "ui/views/controls/native/native_view_host_wrapper.h" |
| 12 #include "ui/views/widget/widget.h" | 13 #include "ui/views/widget/widget.h" |
| 13 | 14 |
| 14 namespace views { | 15 namespace views { |
| 15 | 16 |
| 16 // static | 17 // static |
| 17 const char NativeViewHost::kViewClassName[] = "NativeViewHost"; | 18 const char NativeViewHost::kViewClassName[] = "NativeViewHost"; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 Widget::Widgets widgets; | 211 Widget::Widgets widgets; |
| 211 Widget::GetAllChildWidgets(native_view(), &widgets); | 212 Widget::GetAllChildWidgets(native_view(), &widgets); |
| 212 for (Widget::Widgets::iterator i = widgets.begin(); i != widgets.end(); ++i) { | 213 for (Widget::Widgets::iterator i = widgets.begin(); i != widgets.end(); ++i) { |
| 213 focus_manager->ViewRemoved((*i)->GetRootView()); | 214 focus_manager->ViewRemoved((*i)->GetRootView()); |
| 214 if (!focus_manager->GetFocusedView()) | 215 if (!focus_manager->GetFocusedView()) |
| 215 return; | 216 return; |
| 216 } | 217 } |
| 217 } | 218 } |
| 218 | 219 |
| 219 } // namespace views | 220 } // namespace views |
| OLD | NEW |