| 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_widget.h" | 5 #include "content/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1966 params.anchor_dir); | 1966 params.anchor_dir); |
| 1967 params.is_anchor_first = GetWebWidget()->isSelectionAnchorFirst(); | 1967 params.is_anchor_first = GetWebWidget()->isSelectionAnchorFirst(); |
| 1968 Send(new ViewHostMsg_SelectionBoundsChanged(routing_id_, params)); | 1968 Send(new ViewHostMsg_SelectionBoundsChanged(routing_id_, params)); |
| 1969 } | 1969 } |
| 1970 } | 1970 } |
| 1971 | 1971 |
| 1972 UpdateCompositionInfo(false /* not an immediate request */); | 1972 UpdateCompositionInfo(false /* not an immediate request */); |
| 1973 } | 1973 } |
| 1974 | 1974 |
| 1975 void RenderWidget::SetDeviceColorProfileForTesting( | 1975 void RenderWidget::SetDeviceColorProfileForTesting( |
| 1976 const std::vector<char>& color_profile) { | 1976 const gfx::ICCProfile& color_profile) { |
| 1977 if (owner_delegate_) | 1977 if (owner_delegate_) |
| 1978 owner_delegate_->RenderWidgetDidSetColorProfile(color_profile); | 1978 owner_delegate_->RenderWidgetDidSetColorProfile(color_profile); |
| 1979 } | 1979 } |
| 1980 | 1980 |
| 1981 void RenderWidget::DidAutoResize(const gfx::Size& new_size) { | 1981 void RenderWidget::DidAutoResize(const gfx::Size& new_size) { |
| 1982 WebRect new_size_in_window(0, 0, new_size.width(), new_size.height()); | 1982 WebRect new_size_in_window(0, 0, new_size.width(), new_size.height()); |
| 1983 convertViewportToWindow(&new_size_in_window); | 1983 convertViewportToWindow(&new_size_in_window); |
| 1984 if (size_.width() != new_size_in_window.width || | 1984 if (size_.width() != new_size_in_window.width || |
| 1985 size_.height() != new_size_in_window.height) { | 1985 size_.height() != new_size_in_window.height) { |
| 1986 size_ = gfx::Size(new_size_in_window.width, new_size_in_window.height); | 1986 size_ = gfx::Size(new_size_in_window.width, new_size_in_window.height); |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2273 // browser side (https://crbug.com/669219). | 2273 // browser side (https://crbug.com/669219). |
| 2274 // If there is no WebFrameWidget, then there will be no | 2274 // If there is no WebFrameWidget, then there will be no |
| 2275 // InputMethodControllers for a WebLocalFrame. | 2275 // InputMethodControllers for a WebLocalFrame. |
| 2276 return nullptr; | 2276 return nullptr; |
| 2277 } | 2277 } |
| 2278 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) | 2278 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) |
| 2279 ->getActiveWebInputMethodController(); | 2279 ->getActiveWebInputMethodController(); |
| 2280 } | 2280 } |
| 2281 | 2281 |
| 2282 } // namespace content | 2282 } // namespace content |
| OLD | NEW |