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