| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/gfx/canvas.h" | 8 #include "gfx/canvas.h" |
| 9 #include "views/controls/native/native_view_host_wrapper.h" | 9 #include "views/controls/native/native_view_host_wrapper.h" |
| 10 #include "views/widget/root_view.h" | 10 #include "views/widget/root_view.h" |
| 11 #include "views/widget/widget.h" | 11 #include "views/widget/widget.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 | 14 |
| 15 // static | 15 // static |
| 16 const char NativeViewHost::kViewClassName[] = "views/NativeViewHost"; | 16 const char NativeViewHost::kViewClassName[] = "views/NativeViewHost"; |
| 17 | 17 |
| 18 #if defined(OS_LINUX) | 18 #if defined(OS_LINUX) |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 //////////////////////////////////////////////////////////////////////////////// | 168 //////////////////////////////////////////////////////////////////////////////// |
| 169 // NativeViewHost, private: | 169 // NativeViewHost, private: |
| 170 | 170 |
| 171 void NativeViewHost::Detach(bool destroyed) { | 171 void NativeViewHost::Detach(bool destroyed) { |
| 172 DCHECK(native_view_); | 172 DCHECK(native_view_); |
| 173 native_wrapper_->NativeViewDetaching(destroyed); | 173 native_wrapper_->NativeViewDetaching(destroyed); |
| 174 native_view_ = NULL; | 174 native_view_ = NULL; |
| 175 } | 175 } |
| 176 | 176 |
| 177 } // namespace views | 177 } // namespace views |
| OLD | NEW |