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 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bit_cast.h" | 10 #include "base/bit_cast.h" |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 plugin_input_event_interface_(NULL), | 500 plugin_input_event_interface_(NULL), |
501 plugin_mouse_lock_interface_(NULL), | 501 plugin_mouse_lock_interface_(NULL), |
502 plugin_pdf_interface_(NULL), | 502 plugin_pdf_interface_(NULL), |
503 plugin_private_interface_(NULL), | 503 plugin_private_interface_(NULL), |
504 plugin_textinput_interface_(NULL), | 504 plugin_textinput_interface_(NULL), |
505 checked_for_plugin_input_event_interface_(false), | 505 checked_for_plugin_input_event_interface_(false), |
506 checked_for_plugin_pdf_interface_(false), | 506 checked_for_plugin_pdf_interface_(false), |
507 gamepad_impl_(new GamepadImpl()), | 507 gamepad_impl_(new GamepadImpl()), |
508 uma_private_impl_(NULL), | 508 uma_private_impl_(NULL), |
509 plugin_print_interface_(NULL), | 509 plugin_print_interface_(NULL), |
510 plugin_graphics_3d_interface_(NULL), | |
511 always_on_top_(false), | 510 always_on_top_(false), |
512 fullscreen_container_(NULL), | 511 fullscreen_container_(NULL), |
513 flash_fullscreen_(false), | 512 flash_fullscreen_(false), |
514 desired_fullscreen_state_(false), | 513 desired_fullscreen_state_(false), |
515 message_channel_(NULL), | 514 message_channel_(NULL), |
516 sad_plugin_(NULL), | 515 sad_plugin_(NULL), |
517 input_event_mask_(0), | 516 input_event_mask_(0), |
518 filtered_input_event_mask_(0), | 517 filtered_input_event_mask_(0), |
519 text_input_type_(kPluginDefaultTextInputType), | 518 text_input_type_(kPluginDefaultTextInputType), |
520 text_input_caret_(0, 0, 0, 0), | 519 text_input_caret_(0, 0, 0, 0), |
(...skipping 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3324 } | 3323 } |
3325 | 3324 |
3326 void PepperPluginInstanceImpl::ConvertDIPToViewport(gfx::Rect* rect) const { | 3325 void PepperPluginInstanceImpl::ConvertDIPToViewport(gfx::Rect* rect) const { |
3327 rect->set_x(rect->x() / viewport_to_dip_scale_); | 3326 rect->set_x(rect->x() / viewport_to_dip_scale_); |
3328 rect->set_y(rect->y() / viewport_to_dip_scale_); | 3327 rect->set_y(rect->y() / viewport_to_dip_scale_); |
3329 rect->set_width(rect->width() / viewport_to_dip_scale_); | 3328 rect->set_width(rect->width() / viewport_to_dip_scale_); |
3330 rect->set_height(rect->height() / viewport_to_dip_scale_); | 3329 rect->set_height(rect->height() / viewport_to_dip_scale_); |
3331 } | 3330 } |
3332 | 3331 |
3333 } // namespace content | 3332 } // namespace content |
OLD | NEW |