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

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: Fix version Created 8 years, 7 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 WebPrintParams;
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual WebKit::WebString selectionAsMarkup() const; 67 virtual WebKit::WebString selectionAsMarkup() const;
67 virtual WebKit::WebURL linkAtPosition(const WebKit::WebPoint& position) const; 68 virtual WebKit::WebURL linkAtPosition(const WebKit::WebPoint& position) const;
68 virtual void setZoomLevel(double level, bool text_only); 69 virtual void setZoomLevel(double level, bool text_only);
69 virtual bool startFind(const WebKit::WebString& search_text, 70 virtual bool startFind(const WebKit::WebString& search_text,
70 bool case_sensitive, 71 bool case_sensitive,
71 int identifier); 72 int identifier);
72 virtual void selectFindResult(bool forward); 73 virtual void selectFindResult(bool forward);
73 virtual void stopFind(); 74 virtual void stopFind();
74 virtual bool supportsPaginatedPrint() OVERRIDE; 75 virtual bool supportsPaginatedPrint() OVERRIDE;
75 virtual bool isPrintScalingDisabled() OVERRIDE; 76 virtual bool isPrintScalingDisabled() OVERRIDE;
76 virtual int printBegin(const WebKit::WebRect& printable_area, 77
77 int printer_dpi) OVERRIDE; 78 // TODO(kmadhusu): Remove this function after fixing crbug.com/85132 and add
79 // OVERRIDE keyword to the overloaded function.
80 virtual int printBegin(const WebKit::WebRect& content_area,
81 int printer_dpi);
82 virtual int printBegin(const WebKit::WebPrintParams& print_params);
78 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas) OVERRIDE; 83 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas) OVERRIDE;
79 virtual void printEnd() OVERRIDE; 84 virtual void printEnd() OVERRIDE;
80 85
81 virtual bool canRotateView() OVERRIDE; 86 virtual bool canRotateView() OVERRIDE;
82 virtual void rotateView(RotationType type) OVERRIDE; 87 virtual void rotateView(RotationType type) OVERRIDE;
83 88
84 private: 89 private:
85 friend class base::DeleteHelper<WebPluginImpl>; 90 friend class base::DeleteHelper<WebPluginImpl>;
86 91
87 WEBKIT_PLUGINS_EXPORT virtual ~WebPluginImpl(); 92 WEBKIT_PLUGINS_EXPORT virtual ~WebPluginImpl();
88 struct InitData; 93 struct InitData;
89 94
90 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. 95 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization.
91 // True if the instance represents the entire document in a frame instead of 96 // True if the instance represents the entire document in a frame instead of
92 // being an embedded resource. 97 // being an embedded resource.
93 bool full_frame_; 98 bool full_frame_;
94 scoped_refptr<PluginInstance> instance_; 99 scoped_refptr<PluginInstance> instance_;
95 scoped_refptr<PPB_URLLoader_Impl> document_loader_; 100 scoped_refptr<PPB_URLLoader_Impl> document_loader_;
96 gfx::Rect plugin_rect_; 101 gfx::Rect plugin_rect_;
97 PP_Var instance_object_; 102 PP_Var instance_object_;
98 WebKit::WebPluginContainer* container_; 103 WebKit::WebPluginContainer* container_;
99 104
100 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); 105 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
101 }; 106 };
102 107
103 } // namespace ppapi 108 } // namespace ppapi
104 } // namespace webkit 109 } // namespace webkit
105 110
106 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ 111 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/ppapi_webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698