| 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 "chrome/browser/ui/views/extensions/extension_view_views.h" | 5 #include "chrome/browser/ui/views/extensions/extension_view_views.h" |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/extension_host.h" | |
| 8 #include "chrome/browser/ui/views/extensions/extension_popup.h" | 7 #include "chrome/browser/ui/views/extensions/extension_popup.h" |
| 9 #include "content/public/browser/content_browser_client.h" | 8 #include "content/public/browser/content_browser_client.h" |
| 10 #include "content/public/browser/render_view_host.h" | 9 #include "content/public/browser/render_view_host.h" |
| 11 #include "content/public/browser/render_widget_host_view.h" | 10 #include "content/public/browser/render_widget_host_view.h" |
| 12 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
| 13 #include "content/public/browser/web_contents_view.h" | 12 #include "content/public/browser/web_contents_view.h" |
| 13 #include "extensions/browser/extension_host.h" |
| 14 #include "extensions/common/view_type.h" | 14 #include "extensions/common/view_type.h" |
| 15 #include "ui/events/event.h" | 15 #include "ui/events/event.h" |
| 16 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
| 17 | 17 |
| 18 #if defined(USE_AURA) | 18 #if defined(USE_AURA) |
| 19 #include "ui/base/cursor/cursor.h" | 19 #include "ui/base/cursor/cursor.h" |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 ExtensionViewViews::ExtensionViewViews(extensions::ExtensionHost* host, | 22 ExtensionViewViews::ExtensionViewViews(extensions::ExtensionHost* host, |
| 23 Browser* browser) | 23 Browser* browser) |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 } | 157 } |
| 158 } | 158 } |
| 159 | 159 |
| 160 void ExtensionViewViews::CleanUp() { | 160 void ExtensionViewViews::CleanUp() { |
| 161 if (!initialized_) | 161 if (!initialized_) |
| 162 return; | 162 return; |
| 163 if (native_view()) | 163 if (native_view()) |
| 164 Detach(); | 164 Detach(); |
| 165 initialized_ = false; | 165 initialized_ = false; |
| 166 } | 166 } |
| OLD | NEW |