OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/tab_contents/interstitial_page.h" | 5 #include "content/browser/tab_contents/interstitial_page.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 if (!new_navigation_ && !should_revert_tab_title_) { | 398 if (!new_navigation_ && !should_revert_tab_title_) { |
399 original_tab_title_ = entry->title(); | 399 original_tab_title_ = entry->title(); |
400 should_revert_tab_title_ = true; | 400 should_revert_tab_title_ = true; |
401 } | 401 } |
402 // TODO(evan): make use of title_direction. | 402 // TODO(evan): make use of title_direction. |
403 // http://code.google.com/p/chromium/issues/detail?id=27094 | 403 // http://code.google.com/p/chromium/issues/detail?id=27094 |
404 entry->set_title(title); | 404 entry->set_title(title); |
405 tab_->NotifyNavigationStateChanged(TabContents::INVALIDATE_TITLE); | 405 tab_->NotifyNavigationStateChanged(TabContents::INVALIDATE_TITLE); |
406 } | 406 } |
407 | 407 |
408 RendererPreferences InterstitialPage::GetRendererPrefs( | 408 content::RendererPreferences InterstitialPage::GetRendererPrefs( |
409 content::BrowserContext* browser_context) const { | 409 content::BrowserContext* browser_context) const { |
410 return renderer_preferences_; | 410 return renderer_preferences_; |
411 } | 411 } |
412 | 412 |
413 RenderViewHost* InterstitialPage::CreateRenderViewHost() { | 413 RenderViewHost* InterstitialPage::CreateRenderViewHost() { |
414 RenderViewHost* render_view_host = new RenderViewHost( | 414 RenderViewHost* render_view_host = new RenderViewHost( |
415 SiteInstance::CreateSiteInstance(tab()->browser_context()), | 415 SiteInstance::CreateSiteInstance(tab()->browser_context()), |
416 this, MSG_ROUTING_NONE, kInvalidSessionStorageNamespaceId); | 416 this, MSG_ROUTING_NONE, kInvalidSessionStorageNamespaceId); |
417 return render_view_host; | 417 return render_view_host; |
418 } | 418 } |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 void InterstitialPage::InterstitialPageRVHViewDelegate::TakeFocus( | 657 void InterstitialPage::InterstitialPageRVHViewDelegate::TakeFocus( |
658 bool reverse) { | 658 bool reverse) { |
659 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate()) | 659 if (interstitial_page_->tab() && interstitial_page_->tab()->GetViewDelegate()) |
660 interstitial_page_->tab()->GetViewDelegate()->TakeFocus(reverse); | 660 interstitial_page_->tab()->GetViewDelegate()->TakeFocus(reverse); |
661 } | 661 } |
662 | 662 |
663 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( | 663 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( |
664 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 664 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
665 int active_match_ordinal, bool final_update) { | 665 int active_match_ordinal, bool final_update) { |
666 } | 666 } |
OLD | NEW |