Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: chrome/browser/ui/views/tab_contents/tab_contents_container.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/public/browser/notification_details.h" 11 #include "content/public/browser/notification_details.h"
12 #include "content/public/browser/notification_source.h" 12 #include "content/public/browser/notification_source.h"
13 #include "content/public/browser/notification_types.h" 13 #include "content/public/browser/notification_types.h"
14 #include "content/public/browser/render_view_host.h" 14 #include "content/public/browser/render_view_host.h"
15 #include "content/public/browser/render_widget_host_view.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::RenderViewHost;
20 using content::WebContents; 21 using content::WebContents;
21 22
22 //////////////////////////////////////////////////////////////////////////////// 23 ////////////////////////////////////////////////////////////////////////////////
23 // TabContentsContainer, public: 24 // TabContentsContainer, public:
24 25
25 TabContentsContainer::TabContentsContainer() 26 TabContentsContainer::TabContentsContainer()
26 : native_container_(NULL), 27 : native_container_(NULL),
27 web_contents_(NULL) { 28 web_contents_(NULL) {
28 set_id(VIEW_ID_TAB_CONTAINER); 29 set_id(VIEW_ID_TAB_CONTAINER);
29 } 30 }
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 RenderViewHost* new_host) { 179 RenderViewHost* new_host) {
179 native_container_->RenderViewHostChanged(old_host, new_host); 180 native_container_->RenderViewHostChanged(old_host, new_host);
180 } 181 }
181 182
182 void TabContentsContainer::TabContentsDestroyed(WebContents* contents) { 183 void TabContentsContainer::TabContentsDestroyed(WebContents* contents) {
183 // Sometimes, a TabContents is destroyed before we know about it. This allows 184 // Sometimes, a TabContents is destroyed before we know about it. This allows
184 // us to clean up our state in case this happens. 185 // us to clean up our state in case this happens.
185 DCHECK(contents == web_contents_); 186 DCHECK(contents == web_contents_);
186 ChangeWebContents(NULL); 187 ChangeWebContents(NULL);
187 } 188 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698