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

Side by Side Diff: webkit/plugins/ppapi/ppapi_webplugin_impl.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: '' 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_WEBPLUGIN_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/message_loop_helpers.h" 13 #include "base/message_loop_helpers.h"
14 #include "ppapi/c/pp_var.h" 14 #include "ppapi/c/pp_var.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 #include "webkit/plugins/webkit_plugins_export.h" 17 #include "webkit/plugins/webkit_plugins_export.h"
18 18
19 namespace WebKit { 19 namespace WebKit {
20 struct WebPluginParams; 20 struct WebPluginParams;
21 struct WebSize;
21 } 22 }
22 23
23 namespace webkit { 24 namespace webkit {
24 namespace ppapi { 25 namespace ppapi {
25 26
26 class PluginDelegate; 27 class PluginDelegate;
27 class PluginInstance; 28 class PluginInstance;
28 class PluginModule; 29 class PluginModule;
29 class PPB_URLLoader_Impl; 30 class PPB_URLLoader_Impl;
30 31
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual WebKit::WebString selectionAsMarkup() const; 71 virtual WebKit::WebString selectionAsMarkup() const;
71 virtual WebKit::WebURL linkAtPosition(const WebKit::WebPoint& position) const; 72 virtual WebKit::WebURL linkAtPosition(const WebKit::WebPoint& position) const;
72 virtual void setZoomLevel(double level, bool text_only); 73 virtual void setZoomLevel(double level, bool text_only);
73 virtual bool startFind(const WebKit::WebString& search_text, 74 virtual bool startFind(const WebKit::WebString& search_text,
74 bool case_sensitive, 75 bool case_sensitive,
75 int identifier); 76 int identifier);
76 virtual void selectFindResult(bool forward); 77 virtual void selectFindResult(bool forward);
77 virtual void stopFind(); 78 virtual void stopFind();
78 virtual bool supportsPaginatedPrint() OVERRIDE; 79 virtual bool supportsPaginatedPrint() OVERRIDE;
79 virtual bool isPrintScalingDisabled() OVERRIDE; 80 virtual bool isPrintScalingDisabled() OVERRIDE;
80 virtual int printBegin(const WebKit::WebRect& printable_area, 81 virtual int printBegin(const WebKit::WebRect& content_area,
82 const WebKit::WebRect& printable_area,
83 const WebKit::WebSize& paper_size,
84 bool fit_to_paper_size,
81 int printer_dpi) OVERRIDE; 85 int printer_dpi) OVERRIDE;
82 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas) OVERRIDE; 86 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas) OVERRIDE;
83 virtual void printEnd() OVERRIDE; 87 virtual void printEnd() OVERRIDE;
84 88
85 virtual bool canRotateView() OVERRIDE; 89 virtual bool canRotateView() OVERRIDE;
86 virtual void rotateView(RotationType type) OVERRIDE; 90 virtual void rotateView(RotationType type) OVERRIDE;
87 91
88 struct InitData; 92 struct InitData;
89 93
90 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. 94 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization.
91 // True if the instance represents the entire document in a frame instead of 95 // True if the instance represents the entire document in a frame instead of
92 // being an embedded resource. 96 // being an embedded resource.
93 bool full_frame_; 97 bool full_frame_;
94 scoped_refptr<PluginInstance> instance_; 98 scoped_refptr<PluginInstance> instance_;
95 scoped_refptr<PPB_URLLoader_Impl> document_loader_; 99 scoped_refptr<PPB_URLLoader_Impl> document_loader_;
96 gfx::Rect plugin_rect_; 100 gfx::Rect plugin_rect_;
97 PP_Var instance_object_; 101 PP_Var instance_object_;
98 102
99 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); 103 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
100 }; 104 };
101 105
102 } // namespace ppapi 106 } // namespace ppapi
103 } // namespace webkit 107 } // namespace webkit
104 108
105 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ 109 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698