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

Side by Side Diff: chrome/renderer/webplugin_delegate_pepper.h

Issue 2807027: Added support for vector printing for Pepper v1 plugins for Linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Merged Created 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <map> 10 #include <map>
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 // The nested GPU plugin. 290 // The nested GPU plugin.
291 WebPluginDelegateProxy* nested_delegate_; 291 WebPluginDelegateProxy* nested_delegate_;
292 292
293 // The last printable_area passed in to PrintBegin. We remember this because 293 // The last printable_area passed in to PrintBegin. We remember this because
294 // we need to stretch the printed raster bitmap to these dimensions. It is 294 // we need to stretch the printed raster bitmap to these dimensions. It is
295 // cleared in PrintEnd. 295 // cleared in PrintEnd.
296 gfx::Rect current_printable_area_; 296 gfx::Rect current_printable_area_;
297 int current_printer_dpi_; 297 int current_printer_dpi_;
298 #if defined(OS_MACOSX) 298 #if defined(OS_MACOSX)
299 // On the Mac, when we draw the bitmap to the PDFContext, it seems necessary 299 // On the Mac, when we draw the bitmap to the PDFContext, it seems necessary
300 // to keep the pixels valis until CGContextEndPage is called. We use this 300 // to keep the pixels valid until CGContextEndPage is called. We use this
301 // variable to hold on to the pixels. 301 // variable to hold on to the pixels.
302 SkBitmap last_printed_page_; 302 SkBitmap last_printed_page_;
303 #endif // defined(OS_MACOSX) 303 #endif // defined(OS_MACOSX)
304 #if defined (OS_LINUX)
305 // On Linux, we always send all pages from the renderer to the browser.
306 // So, if the plugin supports printPagesAsPDF we print the entire output
307 // in one shot in the first call to PrintPage.
308 // (This is a temporary hack until we change the WebFrame and WebPlugin print
309 // interfaces).
310 // Specifies the total number of pages to be printed. It it set in PrintBegin.
311 int32 num_pages_;
312 // Specifies whether we have already output all pages. This is used to ignore
313 // subsequent PrintPage requests.
314 bool pdf_output_done_;
315 #endif // defined(OS_LINUX)
304 316
305 #if defined(ENABLE_GPU) 317 #if defined(ENABLE_GPU)
306 // The command buffer used to issue commands to the nested GPU plugin. 318 // The command buffer used to issue commands to the nested GPU plugin.
307 CommandBufferProxy* command_buffer_; 319 CommandBufferProxy* command_buffer_;
308 #endif 320 #endif
309 321
310 // The id of the current find operation, or -1 if none is in process. 322 // The id of the current find operation, or -1 if none is in process.
311 int find_identifier_; 323 int find_identifier_;
312 324
313 // Runnable methods that must be cancelled when the 3D context is destroyed. 325 // Runnable methods that must be cancelled when the 3D context is destroyed.
314 ScopedRunnableMethodFactory<WebPluginDelegatePepper> method_factory3d_; 326 ScopedRunnableMethodFactory<WebPluginDelegatePepper> method_factory3d_;
315 327
316 // When a choose file operation is outstanding, this will contain a 328 // When a choose file operation is outstanding, this will contain a
317 // pointer to the callback specified by the plugin. Will be NULL otherwise. 329 // pointer to the callback specified by the plugin. Will be NULL otherwise.
318 NPChooseFileCallback current_choose_file_callback_; 330 NPChooseFileCallback current_choose_file_callback_;
319 void* current_choose_file_user_data_; 331 void* current_choose_file_user_data_;
320 332
321 scoped_ptr<WebKit::WebCursorInfo> cursor_; 333 scoped_ptr<WebKit::WebCursorInfo> cursor_;
322 334
323 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper); 335 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegatePepper);
324 }; 336 };
325 337
326 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_ 338 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PEPPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/webplugin_delegate_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698