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

Side by Side Diff: content/browser/web_contents/interstitial_page_impl.cc

Issue 10377158: Move keyboard related methods from RenderViewHostDelegate to a new RenderWidgetHostDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove crbug link Created 8 years, 7 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) 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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 const NativeWebKeyboardEvent& event) { 482 const NativeWebKeyboardEvent& event) {
483 return web_contents_->HandleKeyboardEvent(event); 483 return web_contents_->HandleKeyboardEvent(event);
484 } 484 }
485 485
486 WebContents* InterstitialPageImpl::web_contents() const { 486 WebContents* InterstitialPageImpl::web_contents() const {
487 return web_contents_; 487 return web_contents_;
488 } 488 }
489 489
490 RenderViewHost* InterstitialPageImpl::CreateRenderViewHost() { 490 RenderViewHost* InterstitialPageImpl::CreateRenderViewHost() {
491 RenderViewHostImpl* render_view_host = new RenderViewHostImpl( 491 RenderViewHostImpl* render_view_host = new RenderViewHostImpl(
492 SiteInstance::Create(web_contents()->GetBrowserContext()), this, 492 SiteInstance::Create(web_contents()->GetBrowserContext()), this, this,
493 MSG_ROUTING_NONE, false, dom_storage::kInvalidSessionStorageNamespaceId); 493 MSG_ROUTING_NONE, false, dom_storage::kInvalidSessionStorageNamespaceId);
494 return render_view_host; 494 return render_view_host;
495 } 495 }
496 496
497 WebContentsView* InterstitialPageImpl::CreateWebContentsView() { 497 WebContentsView* InterstitialPageImpl::CreateWebContentsView() {
498 if (!create_view_) 498 if (!create_view_)
499 return NULL; 499 return NULL;
500 WebContentsView* web_contents_view = web_contents()->GetView(); 500 WebContentsView* web_contents_view = web_contents()->GetView();
501 RenderWidgetHostView* view = 501 RenderWidgetHostView* view =
502 web_contents_view->CreateViewForWidget(render_view_host_); 502 web_contents_view->CreateViewForWidget(render_view_host_);
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « content/browser/web_contents/interstitial_page_impl.h ('k') | content/browser/web_contents/render_view_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698