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

Side by Side Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 79070: createWindow api call. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #include "base/file_version_info.h" 7 #include "base/file_version_info.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 } 1591 }
1592 1592
1593 Profile* TabContents::GetProfile() const { 1593 Profile* TabContents::GetProfile() const {
1594 return profile(); 1594 return profile();
1595 } 1595 }
1596 1596
1597 WebContents* TabContents::GetAsWebContents() { 1597 WebContents* TabContents::GetAsWebContents() {
1598 return AsWC(this); 1598 return AsWC(this);
1599 } 1599 }
1600 1600
1601 ExtensionFunctionDispatcher* TabContents::CreateExtensionFunctionDispatcher(
1602 RenderViewHost* render_view_host,
1603 const std::string& extension_id) {
1604 return delegate()->CreateExtensionFunctionDispatcher(render_view_host,
1605 extension_id);
1606 }
1607
1601 void TabContents::RenderViewCreated(RenderViewHost* render_view_host) { 1608 void TabContents::RenderViewCreated(RenderViewHost* render_view_host) {
1602 NavigationEntry* entry = controller_.GetActiveEntry(); 1609 NavigationEntry* entry = controller_.GetActiveEntry();
1603 if (!entry) 1610 if (!entry)
1604 return; 1611 return;
1605 1612
1606 // When we're creating views, we're still doing initial setup, so we always 1613 // When we're creating views, we're still doing initial setup, so we always
1607 // use the pending DOM UI rather than any possibly existing committed one. 1614 // use the pending DOM UI rather than any possibly existing committed one.
1608 if (render_manager_.pending_dom_ui()) { 1615 if (render_manager_.pending_dom_ui()) {
1609 render_manager_.pending_dom_ui()->RenderViewCreated(render_view_host); 1616 render_manager_.pending_dom_ui()->RenderViewCreated(render_view_host);
1610 } 1617 }
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 NavigationController::LoadCommittedDetails& committed_details = 2438 NavigationController::LoadCommittedDetails& committed_details =
2432 *(Details<NavigationController::LoadCommittedDetails>(details).ptr()); 2439 *(Details<NavigationController::LoadCommittedDetails>(details).ptr());
2433 ExpireInfoBars(committed_details); 2440 ExpireInfoBars(committed_details);
2434 break; 2441 break;
2435 } 2442 }
2436 2443
2437 default: 2444 default:
2438 NOTREACHED(); 2445 NOTREACHED();
2439 } 2446 }
2440 } 2447 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698