OLD | NEW |
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 PDF_OUT_OF_PROCESS_INSTANCE_H_ | 5 #ifndef PDF_OUT_OF_PROCESS_INSTANCE_H_ |
6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ | 6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 // Current zoom factor. | 250 // Current zoom factor. |
251 double zoom_; | 251 double zoom_; |
252 double initial_zoom_ratio_; | 252 double initial_zoom_ratio_; |
253 // True if we request a new bitmap rendering. | 253 // True if we request a new bitmap rendering. |
254 bool needs_reraster_; | 254 bool needs_reraster_; |
255 // Scroll position at the start of a pinch zoom. | 255 // Scroll position at the start of a pinch zoom. |
256 pp::FloatPoint starting_scroll_offset_; | 256 pp::FloatPoint starting_scroll_offset_; |
257 // True if last bitmap was smaller than screen. | 257 // True if last bitmap was smaller than screen. |
258 bool last_bitmap_smaller_; | 258 bool last_bitmap_smaller_; |
259 double last_zoom_when_smaller_; | |
260 // Current device scale factor. | 259 // Current device scale factor. |
261 float device_scale_; | 260 float device_scale_; |
262 // True if the plugin is full-page. | 261 // True if the plugin is full-page. |
263 bool full_; | 262 bool full_; |
264 | 263 |
265 PaintManager paint_manager_; | 264 PaintManager paint_manager_; |
266 | 265 |
267 struct BackgroundPart { | 266 struct BackgroundPart { |
268 pp::Rect location; | 267 pp::Rect location; |
269 uint32_t color; | 268 uint32_t color; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 389 |
391 // True if the plugin is loaded in print preview, otherwise false. | 390 // True if the plugin is loaded in print preview, otherwise false. |
392 bool is_print_preview_; | 391 bool is_print_preview_; |
393 | 392 |
394 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); | 393 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); |
395 }; | 394 }; |
396 | 395 |
397 } // namespace chrome_pdf | 396 } // namespace chrome_pdf |
398 | 397 |
399 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ | 398 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ |
OLD | NEW |