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/gfx/canvas.h" | 8 #include "ui/gfx/canvas.h" |
9 #include "ui/views/controls/native/native_view_host_wrapper.h" | 9 #include "ui/views/controls/native/native_view_host_wrapper.h" |
10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
11 | 11 |
12 namespace views { | 12 namespace views { |
13 | 13 |
14 // static | 14 // static |
15 const char NativeViewHost::kViewClassName[] = "views/NativeViewHost"; | 15 const char NativeViewHost::kViewClassName[] = "NativeViewHost"; |
16 | 16 |
17 #if defined(USE_AURA) | 17 #if defined(USE_AURA) |
18 // Views implmenetatxion draws the focus. | 18 // Views implmenetatxion draws the focus. |
19 // TODO(oshima): Eliminate this flag and consolidate | 19 // TODO(oshima): Eliminate this flag and consolidate |
20 // the focus border code. | 20 // the focus border code. |
21 const bool NativeViewHost::kRenderNativeControlFocus = false; | 21 const bool NativeViewHost::kRenderNativeControlFocus = false; |
22 #else | 22 #else |
23 // static | 23 // static |
24 const bool NativeViewHost::kRenderNativeControlFocus = true; | 24 const bool NativeViewHost::kRenderNativeControlFocus = true; |
25 #endif | 25 #endif |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 219 |
220 } // namespace views | 220 } // namespace views |
OLD | NEW |