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/controls/native/native_view_host.h" | 5 #include "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/widget/widget.h" | |
10 #include "views/controls/native/native_view_host_wrapper.h" | 9 #include "views/controls/native/native_view_host_wrapper.h" |
| 10 #include "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[] = "views/NativeViewHost"; |
16 | 16 |
17 #if defined(OS_LINUX) | 17 #if defined(OS_LINUX) |
18 // GTK renders the focus. | 18 // GTK renders the focus. |
19 // static | 19 // static |
20 const bool NativeViewHost::kRenderNativeControlFocus = false; | 20 const bool NativeViewHost::kRenderNativeControlFocus = false; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // NativeViewHost, private: | 179 // NativeViewHost, private: |
180 | 180 |
181 void NativeViewHost::Detach(bool destroyed) { | 181 void NativeViewHost::Detach(bool destroyed) { |
182 if (native_view_) { | 182 if (native_view_) { |
183 native_wrapper_->NativeViewDetaching(destroyed); | 183 native_wrapper_->NativeViewDetaching(destroyed); |
184 native_view_ = NULL; | 184 native_view_ = NULL; |
185 } | 185 } |
186 } | 186 } |
187 | 187 |
188 } // namespace views | 188 } // namespace views |
OLD | NEW |