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

Side by Side Diff: Source/web/WebRemoteFrameImpl.cpp

Issue 379793002: [Blink] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "web/WebRemoteFrameImpl.h" 6 #include "web/WebRemoteFrameImpl.h"
7 7
8 #include "core/frame/FrameOwner.h" 8 #include "core/frame/FrameOwner.h"
9 #include "core/frame/RemoteFrame.h" 9 #include "core/frame/RemoteFrame.h"
10 #include "core/page/Page.h" 10 #include "core/page/Page.h"
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 { 628 {
629 ASSERT_NOT_REACHED(); 629 ASSERT_NOT_REACHED();
630 } 630 }
631 631
632 bool WebRemoteFrameImpl::isPrintScalingDisabledForPlugin(const WebNode&) 632 bool WebRemoteFrameImpl::isPrintScalingDisabledForPlugin(const WebNode&)
633 { 633 {
634 ASSERT_NOT_REACHED(); 634 ASSERT_NOT_REACHED();
635 return false; 635 return false;
636 } 636 }
637 637
638 int WebRemoteFrameImpl::getNumCopiesForPlugin(const WebNode&)
639 {
640 ASSERT_NOT_REACHED();
641 return 1;
642 }
643
638 bool WebRemoteFrameImpl::hasCustomPageSizeStyle(int pageIndex) 644 bool WebRemoteFrameImpl::hasCustomPageSizeStyle(int pageIndex)
639 { 645 {
640 ASSERT_NOT_REACHED(); 646 ASSERT_NOT_REACHED();
641 return false; 647 return false;
642 } 648 }
643 649
644 bool WebRemoteFrameImpl::isPageBoxVisible(int pageIndex) 650 bool WebRemoteFrameImpl::isPageBoxVisible(int pageIndex)
645 { 651 {
646 ASSERT_NOT_REACHED(); 652 ASSERT_NOT_REACHED();
647 return false; 653 return false;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 832
827 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame) 833 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame)
828 { 834 {
829 if (!frame.client()) 835 if (!frame.client())
830 return 0; 836 return 0;
831 return static_cast<RemoteFrameClient*>(frame.client())->webFrame(); 837 return static_cast<RemoteFrameClient*>(frame.client())->webFrame();
832 } 838 }
833 839
834 } // namespace blink 840 } // namespace blink
835 841
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698