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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Addressed comments, made redirect response PlzNavigate-only. Created 3 years, 8 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 bool WebLocalFrameImpl::HasHorizontalScrollbar() const { 639 bool WebLocalFrameImpl::HasHorizontalScrollbar() const {
640 return GetFrame() && GetFrame()->View() && 640 return GetFrame() && GetFrame()->View() &&
641 GetFrame()->View()->HorizontalScrollbar(); 641 GetFrame()->View()->HorizontalScrollbar();
642 } 642 }
643 643
644 bool WebLocalFrameImpl::HasVerticalScrollbar() const { 644 bool WebLocalFrameImpl::HasVerticalScrollbar() const {
645 return GetFrame() && GetFrame()->View() && 645 return GetFrame() && GetFrame()->View() &&
646 GetFrame()->View()->VerticalScrollbar(); 646 GetFrame()->View()->VerticalScrollbar();
647 } 647 }
648 648
649 void WebLocalFrameImpl::Collapse(bool collapsed) {
650 DCHECK(GetFrame()->Owner()->IsLocal());
651 HTMLFrameOwnerElement* owner = ToHTMLFrameOwnerElement(GetFrame()->Owner());
652 owner->SetCollapsedByClient(collapsed);
653 }
654
649 WebView* WebLocalFrameImpl::View() const { 655 WebView* WebLocalFrameImpl::View() const {
650 return ViewImpl(); 656 return ViewImpl();
651 } 657 }
652 658
653 WebDocument WebLocalFrameImpl::GetDocument() const { 659 WebDocument WebLocalFrameImpl::GetDocument() const {
654 if (!GetFrame() || !GetFrame()->GetDocument()) 660 if (!GetFrame() || !GetFrame()->GetDocument())
655 return WebDocument(); 661 return WebDocument();
656 return WebDocument(GetFrame()->GetDocument()); 662 return WebDocument(GetFrame()->GetDocument());
657 } 663 }
658 664
(...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after
2558 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { 2564 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const {
2559 return *text_checker_client_; 2565 return *text_checker_client_;
2560 } 2566 }
2561 2567
2562 void WebLocalFrameImpl::SetTextCheckClient( 2568 void WebLocalFrameImpl::SetTextCheckClient(
2563 WebTextCheckClient* text_check_client) { 2569 WebTextCheckClient* text_check_client) {
2564 text_check_client_ = text_check_client; 2570 text_check_client_ = text_check_client;
2565 } 2571 }
2566 2572
2567 } // namespace blink 2573 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698