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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 browser_context, site_instance.get())->GetDOMStorageContext()); | 496 browser_context, site_instance.get())->GetDOMStorageContext()); |
497 session_storage_namespace_ = | 497 session_storage_namespace_ = |
498 new SessionStorageNamespaceImpl(dom_storage_context); | 498 new SessionStorageNamespaceImpl(dom_storage_context); |
499 | 499 |
500 RenderViewHostImpl* render_view_host = | 500 RenderViewHostImpl* render_view_host = |
501 new RenderViewHostImpl(site_instance.get(), | 501 new RenderViewHostImpl(site_instance.get(), |
502 this, | 502 this, |
503 this, | 503 this, |
504 MSG_ROUTING_NONE, | 504 MSG_ROUTING_NONE, |
505 MSG_ROUTING_NONE, | 505 MSG_ROUTING_NONE, |
| 506 false, |
506 false); | 507 false); |
507 web_contents_->RenderViewForInterstitialPageCreated(render_view_host); | 508 web_contents_->RenderViewForInterstitialPageCreated(render_view_host); |
508 return render_view_host; | 509 return render_view_host; |
509 } | 510 } |
510 | 511 |
511 WebContentsView* InterstitialPageImpl::CreateWebContentsView() { | 512 WebContentsView* InterstitialPageImpl::CreateWebContentsView() { |
512 if (!enabled() || !create_view_) | 513 if (!enabled() || !create_view_) |
513 return NULL; | 514 return NULL; |
514 WebContentsView* web_contents_view = web_contents()->GetView(); | 515 WebContentsView* web_contents_view = web_contents()->GetView(); |
515 WebContentsViewPort* web_contents_view_port = | 516 WebContentsViewPort* web_contents_view_port = |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 | 812 |
812 web_contents->GetDelegateView()->TakeFocus(reverse); | 813 web_contents->GetDelegateView()->TakeFocus(reverse); |
813 } | 814 } |
814 | 815 |
815 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( | 816 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( |
816 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 817 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
817 int active_match_ordinal, bool final_update) { | 818 int active_match_ordinal, bool final_update) { |
818 } | 819 } |
819 | 820 |
820 } // namespace content | 821 } // namespace content |
OLD | NEW |