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

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

Issue 164458: Land http://codereview.chromium.org/159067: (Closed)
Patch Set: undo docs Created 11 years, 4 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/views/tabs/tab_strip.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/browser/tab_contents/tab_contents.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 } 1769 }
1770 1770
1771 RendererPreferences TabContents::GetRendererPrefs() const { 1771 RendererPreferences TabContents::GetRendererPrefs() const {
1772 return renderer_preferences_; 1772 return renderer_preferences_;
1773 } 1773 }
1774 1774
1775 TabContents* TabContents::GetAsTabContents() { 1775 TabContents* TabContents::GetAsTabContents() {
1776 return this; 1776 return this;
1777 } 1777 }
1778 1778
1779 ViewType::Type TabContents::GetRenderViewType() const {
1780 return ViewType::TAB_CONTENTS;
1781 }
1782
1783 int TabContents::GetBrowserWindowID() const {
1784 return controller().window_id().id();
1785 }
1786
1779 void TabContents::RenderViewCreated(RenderViewHost* render_view_host) { 1787 void TabContents::RenderViewCreated(RenderViewHost* render_view_host) {
1780 NotificationService::current()->Notify( 1788 NotificationService::current()->Notify(
1781 NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB, 1789 NotificationType::RENDER_VIEW_HOST_CREATED_FOR_TAB,
1782 Source<TabContents>(this), 1790 Source<TabContents>(this),
1783 Details<RenderViewHost>(render_view_host)); 1791 Details<RenderViewHost>(render_view_host));
1784
1785 NavigationEntry* entry = controller_.GetActiveEntry(); 1792 NavigationEntry* entry = controller_.GetActiveEntry();
1786 if (!entry) 1793 if (!entry)
1787 return; 1794 return;
1788 1795
1789 // When we're creating views, we're still doing initial setup, so we always 1796 // When we're creating views, we're still doing initial setup, so we always
1790 // use the pending DOM UI rather than any possibly existing committed one. 1797 // use the pending DOM UI rather than any possibly existing committed one.
1791 if (render_manager_.pending_dom_ui()) { 1798 if (render_manager_.pending_dom_ui()) {
1792 render_manager_.pending_dom_ui()->RenderViewCreated(render_view_host); 1799 render_manager_.pending_dom_ui()->RenderViewCreated(render_view_host);
1793 } 1800 }
1794 1801
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 NavigationController::LoadCommittedDetails& committed_details = 2414 NavigationController::LoadCommittedDetails& committed_details =
2408 *(Details<NavigationController::LoadCommittedDetails>(details).ptr()); 2415 *(Details<NavigationController::LoadCommittedDetails>(details).ptr());
2409 ExpireInfoBars(committed_details); 2416 ExpireInfoBars(committed_details);
2410 break; 2417 break;
2411 } 2418 }
2412 2419
2413 default: 2420 default:
2414 NOTREACHED(); 2421 NOTREACHED();
2415 } 2422 }
2416 } 2423 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698