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

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

Issue 591053002: Support print preset options for pdf document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: out-params should be by pointer Created 6 years, 3 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/frame/Settings.h" 10 #include "core/frame/Settings.h"
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 { 670 {
671 ASSERT_NOT_REACHED(); 671 ASSERT_NOT_REACHED();
672 } 672 }
673 673
674 bool WebRemoteFrameImpl::isPrintScalingDisabledForPlugin(const WebNode&) 674 bool WebRemoteFrameImpl::isPrintScalingDisabledForPlugin(const WebNode&)
675 { 675 {
676 ASSERT_NOT_REACHED(); 676 ASSERT_NOT_REACHED();
677 return false; 677 return false;
678 } 678 }
679 679
680 int WebRemoteFrameImpl::getPrintCopiesForPlugin(const WebNode&) 680 bool WebRemoteFrameImpl::getPrintPresetOptionsForPlugin(const WebNode&, WebPrint PresetOptions*)
681 { 681 {
682 ASSERT_NOT_REACHED(); 682 ASSERT_NOT_REACHED();
683 return 1; 683 return false;
684 } 684 }
685 685
686 bool WebRemoteFrameImpl::hasCustomPageSizeStyle(int pageIndex) 686 bool WebRemoteFrameImpl::hasCustomPageSizeStyle(int pageIndex)
687 { 687 {
688 ASSERT_NOT_REACHED(); 688 ASSERT_NOT_REACHED();
689 return false; 689 return false;
690 } 690 }
691 691
692 bool WebRemoteFrameImpl::isPageBoxVisible(int pageIndex) 692 bool WebRemoteFrameImpl::isPageBoxVisible(int pageIndex)
693 { 693 {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 } 873 }
874 874
875 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame) 875 WebRemoteFrameImpl* WebRemoteFrameImpl::fromFrame(RemoteFrame& frame)
876 { 876 {
877 if (!frame.client()) 877 if (!frame.client())
878 return 0; 878 return 0;
879 return static_cast<RemoteFrameClient*>(frame.client())->webFrame(); 879 return static_cast<RemoteFrameClient*>(frame.client())->webFrame();
880 } 880 }
881 881
882 } // namespace blink 882 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698