| 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/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2460 params.new_size = size(); | 2460 params.new_size = size(); |
| 2461 params.visible_viewport_size = visible_viewport_size_; | 2461 params.visible_viewport_size = visible_viewport_size_; |
| 2462 params.physical_backing_size = gfx::ScaleToCeiledSize(size(), factor); | 2462 params.physical_backing_size = gfx::ScaleToCeiledSize(size(), factor); |
| 2463 params.browser_controls_shrink_blink_size = false; | 2463 params.browser_controls_shrink_blink_size = false; |
| 2464 params.top_controls_height = 0.f; | 2464 params.top_controls_height = 0.f; |
| 2465 params.is_fullscreen_granted = is_fullscreen_granted(); | 2465 params.is_fullscreen_granted = is_fullscreen_granted(); |
| 2466 params.display_mode = display_mode_; | 2466 params.display_mode = display_mode_; |
| 2467 OnResize(params); | 2467 OnResize(params); |
| 2468 } | 2468 } |
| 2469 | 2469 |
| 2470 void RenderViewImpl::SetDeviceColorProfileForTesting( | 2470 void RenderViewImpl::SetDeviceColorSpaceForTesting( |
| 2471 const gfx::ICCProfile& icc_profile) { | 2471 const gfx::ColorSpace& color_space) { |
| 2472 ResizeParams params; | 2472 ResizeParams params; |
| 2473 params.screen_info = screen_info_; | 2473 params.screen_info = screen_info_; |
| 2474 params.screen_info.color_space = icc_profile.GetColorSpace(); | 2474 params.screen_info.color_space = color_space; |
| 2475 params.new_size = size(); | 2475 params.new_size = size(); |
| 2476 params.visible_viewport_size = visible_viewport_size_; | 2476 params.visible_viewport_size = visible_viewport_size_; |
| 2477 params.physical_backing_size = physical_backing_size_; | 2477 params.physical_backing_size = physical_backing_size_; |
| 2478 params.browser_controls_shrink_blink_size = false; | 2478 params.browser_controls_shrink_blink_size = false; |
| 2479 params.top_controls_height = 0.f; | 2479 params.top_controls_height = 0.f; |
| 2480 params.is_fullscreen_granted = is_fullscreen_granted(); | 2480 params.is_fullscreen_granted = is_fullscreen_granted(); |
| 2481 params.display_mode = display_mode_; | 2481 params.display_mode = display_mode_; |
| 2482 OnResize(params); | 2482 OnResize(params); |
| 2483 } | 2483 } |
| 2484 | 2484 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2556 std::move(callback).Run(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, latency_info, | 2556 std::move(callback).Run(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, latency_info, |
| 2557 nullptr); | 2557 nullptr); |
| 2558 return; | 2558 return; |
| 2559 } | 2559 } |
| 2560 idle_user_detector_->ActivityDetected(); | 2560 idle_user_detector_->ActivityDetected(); |
| 2561 RenderWidget::HandleInputEvent(input_event, latency_info, | 2561 RenderWidget::HandleInputEvent(input_event, latency_info, |
| 2562 std::move(callback)); | 2562 std::move(callback)); |
| 2563 } | 2563 } |
| 2564 | 2564 |
| 2565 } // namespace content | 2565 } // namespace content |
| OLD | NEW |