| 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 "content/browser/web_contents/interstitial_page_impl.h" | 5 #include "content/browser/web_contents/interstitial_page_impl.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 entry->SetTitle(title); | 461 entry->SetTitle(title); |
| 462 web_contents_->NotifyNavigationStateChanged(content::INVALIDATE_TYPE_TITLE); | 462 web_contents_->NotifyNavigationStateChanged(content::INVALIDATE_TYPE_TITLE); |
| 463 } | 463 } |
| 464 | 464 |
| 465 content::RendererPreferences InterstitialPageImpl::GetRendererPrefs( | 465 content::RendererPreferences InterstitialPageImpl::GetRendererPrefs( |
| 466 content::BrowserContext* browser_context) const { | 466 content::BrowserContext* browser_context) const { |
| 467 delegate_->OverrideRendererPrefs(&renderer_preferences_); | 467 delegate_->OverrideRendererPrefs(&renderer_preferences_); |
| 468 return renderer_preferences_; | 468 return renderer_preferences_; |
| 469 } | 469 } |
| 470 | 470 |
| 471 WebPreferences InterstitialPageImpl::GetWebkitPrefs() { | 471 webkit_glue::WebPreferences InterstitialPageImpl::GetWebkitPrefs() { |
| 472 return WebContentsImpl::GetWebkitPrefs(render_view_host_, url_); | 472 return WebContentsImpl::GetWebkitPrefs(render_view_host_, url_); |
| 473 } | 473 } |
| 474 | 474 |
| 475 bool InterstitialPageImpl::PreHandleKeyboardEvent( | 475 bool InterstitialPageImpl::PreHandleKeyboardEvent( |
| 476 const NativeWebKeyboardEvent& event, | 476 const NativeWebKeyboardEvent& event, |
| 477 bool* is_keyboard_shortcut) { | 477 bool* is_keyboard_shortcut) { |
| 478 return web_contents_->PreHandleKeyboardEvent(event, is_keyboard_shortcut); | 478 return web_contents_->PreHandleKeyboardEvent(event, is_keyboard_shortcut); |
| 479 } | 479 } |
| 480 | 480 |
| 481 void InterstitialPageImpl::HandleKeyboardEvent( | 481 void InterstitialPageImpl::HandleKeyboardEvent( |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 if (!web_contents->GetViewDelegate()) | 746 if (!web_contents->GetViewDelegate()) |
| 747 return; | 747 return; |
| 748 | 748 |
| 749 web_contents->GetViewDelegate()->TakeFocus(reverse); | 749 web_contents->GetViewDelegate()->TakeFocus(reverse); |
| 750 } | 750 } |
| 751 | 751 |
| 752 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::OnFindReply( | 752 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::OnFindReply( |
| 753 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 753 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
| 754 int active_match_ordinal, bool final_update) { | 754 int active_match_ordinal, bool final_update) { |
| 755 } | 755 } |
| OLD | NEW |