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 "gfx/canvas.h" | 8 #include "ui/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/controls/native/native_view_host_views.h" | 10 #include "views/controls/native/native_view_host_views.h" |
11 #include "views/widget/root_view.h" | 11 #include "views/widget/root_view.h" |
12 #include "views/widget/widget.h" | 12 #include "views/widget/widget.h" |
13 | 13 |
14 namespace views { | 14 namespace views { |
15 | 15 |
16 // static | 16 // static |
17 const char NativeViewHost::kViewClassName[] = "views/NativeViewHost"; | 17 const char NativeViewHost::kViewClassName[] = "views/NativeViewHost"; |
18 | 18 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // NativeViewHost, private: | 199 // NativeViewHost, private: |
200 | 200 |
201 void NativeViewHost::Detach(bool destroyed) { | 201 void NativeViewHost::Detach(bool destroyed) { |
202 DCHECK(native_view_ || views_view_); | 202 DCHECK(native_view_ || views_view_); |
203 native_wrapper_->NativeViewDetaching(destroyed); | 203 native_wrapper_->NativeViewDetaching(destroyed); |
204 native_view_ = NULL; | 204 native_view_ = NULL; |
205 views_view_ = NULL; | 205 views_view_ = NULL; |
206 } | 206 } |
207 | 207 |
208 } // namespace views | 208 } // namespace views |
OLD | NEW |