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

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

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/frame_host/interstitial_page_impl.h" 5 #include "content/browser/frame_host/interstitial_page_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 else 422 else
423 return AccessibilityMode(); 423 return AccessibilityMode();
424 } 424 }
425 425
426 void InterstitialPageImpl::Cut() { 426 void InterstitialPageImpl::Cut() {
427 FrameTreeNode* focused_node = frame_tree_->GetFocusedFrame(); 427 FrameTreeNode* focused_node = frame_tree_->GetFocusedFrame();
428 if (!focused_node) 428 if (!focused_node)
429 return; 429 return;
430 430
431 focused_node->current_frame_host()->GetFrameInputHandler()->Cut(); 431 focused_node->current_frame_host()->GetFrameInputHandler()->Cut();
432 RecordAction(base::UserMetricsAction("Cut")); 432 base::RecordAction(base::UserMetricsAction("Cut"));
433 } 433 }
434 434
435 void InterstitialPageImpl::ExecuteEditCommand( 435 void InterstitialPageImpl::ExecuteEditCommand(
436 const std::string& command, 436 const std::string& command,
437 const base::Optional<base::string16>& value) { 437 const base::Optional<base::string16>& value) {
438 FrameTreeNode* focused_node = frame_tree_->GetFocusedFrame(); 438 FrameTreeNode* focused_node = frame_tree_->GetFocusedFrame();
439 if (!focused_node) 439 if (!focused_node)
440 return; 440 return;
441 441
442 focused_node->current_frame_host() 442 focused_node->current_frame_host()
443 ->GetFrameInputHandler() 443 ->GetFrameInputHandler()
444 ->ExecuteEditCommand(command, value); 444 ->ExecuteEditCommand(command, value);
445 } 445 }
446 446
447 void InterstitialPageImpl::Copy() { 447 void InterstitialPageImpl::Copy() {
448 FrameTreeNode* focused_node = frame_tree_->GetFocusedFrame(); 448 FrameTreeNode* focused_node = frame_tree_->GetFocusedFrame();
449 if (!focused_node) 449 if (!focused_node)
450 return; 450 return;
451 451
452 focused_node->current_frame_host()->GetFrameInputHandler()->Copy(); 452 focused_node->current_frame_host()->GetFrameInputHandler()->Copy();
453 RecordAction(base::UserMetricsAction("Copy")); 453 base::RecordAction(base::UserMetricsAction("Copy"));
454 } 454 }
455 455
456 void InterstitialPageImpl::Paste() { 456 void InterstitialPageImpl::Paste() {
457 FrameTreeNode* focused_node = frame_tree_->GetFocusedFrame(); 457 FrameTreeNode* focused_node = frame_tree_->GetFocusedFrame();
458 if (!focused_node) 458 if (!focused_node)
459 return; 459 return;
460 460
461 focused_node->current_frame_host()->GetFrameInputHandler()->Paste(); 461 focused_node->current_frame_host()->GetFrameInputHandler()->Paste();
462 RecordAction(base::UserMetricsAction("Paste")); 462 base::RecordAction(base::UserMetricsAction("Paste"));
463 } 463 }
464 464
465 void InterstitialPageImpl::SelectAll() { 465 void InterstitialPageImpl::SelectAll() {
466 FrameTreeNode* focused_node = frame_tree_->GetFocusedFrame(); 466 FrameTreeNode* focused_node = frame_tree_->GetFocusedFrame();
467 if (!focused_node) 467 if (!focused_node)
468 return; 468 return;
469 469
470 focused_node->current_frame_host()->GetFrameInputHandler()->SelectAll(); 470 focused_node->current_frame_host()->GetFrameInputHandler()->SelectAll();
471 RecordAction(base::UserMetricsAction("SelectAll")); 471 base::RecordAction(base::UserMetricsAction("SelectAll"));
472 } 472 }
473 473
474 RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() { 474 RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() {
475 return rvh_delegate_view_.get(); 475 return rvh_delegate_view_.get();
476 } 476 }
477 477
478 WebContents* InterstitialPageImpl::GetWebContents() const { 478 WebContents* InterstitialPageImpl::GetWebContents() const {
479 return web_contents(); 479 return web_contents();
480 } 480 }
481 481
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 RenderWidgetHostInputEventRouter* InterstitialPageImpl::GetInputEventRouter() { 1001 RenderWidgetHostInputEventRouter* InterstitialPageImpl::GetInputEventRouter() {
1002 WebContentsImpl* web_contents_impl = 1002 WebContentsImpl* web_contents_impl =
1003 static_cast<WebContentsImpl*>(web_contents_); 1003 static_cast<WebContentsImpl*>(web_contents_);
1004 if (!web_contents_impl) 1004 if (!web_contents_impl)
1005 return nullptr; 1005 return nullptr;
1006 1006
1007 return web_contents_impl->GetInputEventRouter(); 1007 return web_contents_impl->GetInputEventRouter();
1008 } 1008 }
1009 1009
1010 } // namespace content 1010 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698