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

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 10083059: [Print Preview] Modified PP_PrintSettings_Dev interface to support auto fit to page functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 8 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 | 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 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 #include "ppapi/c/ppb_input_event.h" 31 #include "ppapi/c/ppb_input_event.h"
32 #include "ppapi/c/ppb_gamepad.h" 32 #include "ppapi/c/ppb_gamepad.h"
33 #include "ppapi/c/ppp_graphics_3d.h" 33 #include "ppapi/c/ppp_graphics_3d.h"
34 #include "ppapi/c/ppp_input_event.h" 34 #include "ppapi/c/ppp_input_event.h"
35 #include "ppapi/c/ppp_messaging.h" 35 #include "ppapi/c/ppp_messaging.h"
36 #include "ppapi/c/ppp_mouse_lock.h" 36 #include "ppapi/c/ppp_mouse_lock.h"
37 #include "ppapi/c/private/ppp_instance_private.h" 37 #include "ppapi/c/private/ppp_instance_private.h"
38 #include "ppapi/shared_impl/function_group_base.h" 38 #include "ppapi/shared_impl/function_group_base.h"
39 #include "ppapi/shared_impl/ppb_instance_shared.h" 39 #include "ppapi/shared_impl/ppb_instance_shared.h"
40 #include "ppapi/shared_impl/ppb_view_shared.h" 40 #include "ppapi/shared_impl/ppb_view_shared.h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPrintScalingOption .h"
41 #include "third_party/skia/include/core/SkRefCnt.h" 42 #include "third_party/skia/include/core/SkRefCnt.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCanvas.h" 43 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCanvas.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 44 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
45 #include "ui/base/ime/text_input_type.h" 46 #include "ui/base/ime/text_input_type.h"
46 #include "ui/gfx/rect.h" 47 #include "ui/gfx/rect.h"
47 #include "webkit/plugins/ppapi/plugin_delegate.h" 48 #include "webkit/plugins/ppapi/plugin_delegate.h"
48 #include "webkit/plugins/ppapi/ppp_pdf.h" 49 #include "webkit/plugins/ppapi/ppp_pdf.h"
49 #include "webkit/plugins/webkit_plugins_export.h" 50 #include "webkit/plugins/webkit_plugins_export.h"
50 51
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 void RequestSurroundingText(size_t desired_number_of_characters); 227 void RequestSurroundingText(size_t desired_number_of_characters);
227 void Zoom(double factor, bool text_only); 228 void Zoom(double factor, bool text_only);
228 bool StartFind(const string16& search_text, 229 bool StartFind(const string16& search_text,
229 bool case_sensitive, 230 bool case_sensitive,
230 int identifier); 231 int identifier);
231 void SelectFindResult(bool forward); 232 void SelectFindResult(bool forward);
232 void StopFind(); 233 void StopFind();
233 234
234 bool SupportsPrintInterface(); 235 bool SupportsPrintInterface();
235 bool IsPrintScalingDisabled(); 236 bool IsPrintScalingDisabled();
236 int PrintBegin(const gfx::Rect& printable_area, int printer_dpi); 237
238 int PrintBegin(const gfx::Rect& content_area,
239 const gfx::Rect& printable_area,
240 const gfx::Size& paper_size,
241 WebKit::WebPrintScalingOption print_scaling_option,
242 int printer_dpi);
237 bool PrintPage(int page_number, WebKit::WebCanvas* canvas); 243 bool PrintPage(int page_number, WebKit::WebCanvas* canvas);
238 void PrintEnd(); 244 void PrintEnd();
239 245
240 bool CanRotateView(); 246 bool CanRotateView();
241 void RotateView(WebKit::WebPlugin::RotationType type); 247 void RotateView(WebKit::WebPlugin::RotationType type);
242 248
243 void Graphics3DContextLost(); 249 void Graphics3DContextLost();
244 250
245 // There are 2 implementations of the fullscreen interface 251 // There are 2 implementations of the fullscreen interface
246 // PPB_FlashFullscreen is used by Pepper Flash. 252 // PPB_FlashFullscreen is used by Pepper Flash.
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 // a user gesture after it has been processed. 643 // a user gesture after it has been processed.
638 PP_TimeTicks pending_user_gesture_; 644 PP_TimeTicks pending_user_gesture_;
639 645
640 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 646 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
641 }; 647 };
642 648
643 } // namespace ppapi 649 } // namespace ppapi
644 } // namespace webkit 650 } // namespace webkit
645 651
646 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 652 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698