| 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/tab_contents/tab_contents_container.h" | 5 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "chrome/browser/ui/view_ids.h" | 9 #include "chrome/browser/ui/view_ids.h" |
| 10 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container.h" | 10 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container.h" |
| 11 #include "content/browser/renderer_host/render_view_host.h" | 11 #include "content/browser/renderer_host/render_view_host.h" |
| 12 #include "content/browser/renderer_host/render_widget_host_view.h" | |
| 13 #include "content/public/browser/notification_details.h" | 12 #include "content/public/browser/notification_details.h" |
| 14 #include "content/public/browser/notification_source.h" | 13 #include "content/public/browser/notification_source.h" |
| 15 #include "content/public/browser/notification_types.h" | 14 #include "content/public/browser/notification_types.h" |
| 15 #include "content/public/browser/render_widget_host_view.h" |
| 16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 17 #include "ui/base/accessibility/accessible_view_state.h" | 17 #include "ui/base/accessibility/accessible_view_state.h" |
| 18 | 18 |
| 19 using content::NavigationController; | 19 using content::NavigationController; |
| 20 using content::WebContents; | 20 using content::WebContents; |
| 21 | 21 |
| 22 //////////////////////////////////////////////////////////////////////////////// | 22 //////////////////////////////////////////////////////////////////////////////// |
| 23 // TabContentsContainer, public: | 23 // TabContentsContainer, public: |
| 24 | 24 |
| 25 TabContentsContainer::TabContentsContainer() | 25 TabContentsContainer::TabContentsContainer() |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 RenderViewHost* new_host) { | 178 RenderViewHost* new_host) { |
| 179 native_container_->RenderViewHostChanged(old_host, new_host); | 179 native_container_->RenderViewHostChanged(old_host, new_host); |
| 180 } | 180 } |
| 181 | 181 |
| 182 void TabContentsContainer::TabContentsDestroyed(WebContents* contents) { | 182 void TabContentsContainer::TabContentsDestroyed(WebContents* contents) { |
| 183 // Sometimes, a TabContents is destroyed before we know about it. This allows | 183 // Sometimes, a TabContents is destroyed before we know about it. This allows |
| 184 // us to clean up our state in case this happens. | 184 // us to clean up our state in case this happens. |
| 185 DCHECK(contents == web_contents_); | 185 DCHECK(contents == web_contents_); |
| 186 ChangeWebContents(NULL); | 186 ChangeWebContents(NULL); |
| 187 } | 187 } |
| OLD | NEW |