| 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 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1731 ConvertWindowPointToViewport(client_point), screen_point, op); | 1731 ConvertWindowPointToViewport(client_point), screen_point, op); |
| 1732 } | 1732 } |
| 1733 | 1733 |
| 1734 void RenderWidget::OnDragSourceSystemDragEnded() { | 1734 void RenderWidget::OnDragSourceSystemDragEnded() { |
| 1735 if (!GetWebWidget()) | 1735 if (!GetWebWidget()) |
| 1736 return; | 1736 return; |
| 1737 | 1737 |
| 1738 static_cast<WebFrameWidget*>(GetWebWidget())->dragSourceSystemDragEnded(); | 1738 static_cast<WebFrameWidget*>(GetWebWidget())->dragSourceSystemDragEnded(); |
| 1739 } | 1739 } |
| 1740 | 1740 |
| 1741 void RenderWidget::showVirtualKeyboard() { | 1741 void RenderWidget::showVirtualKeyboardOnElementFocus() { |
| 1742 ShowVirtualKeyboard(); | 1742 ShowVirtualKeyboard(); |
| 1743 | 1743 |
| 1744 // TODO(rouslan): Fix ChromeOS and Windows 8 behavior of autofill popup with | 1744 // TODO(rouslan): Fix ChromeOS and Windows 8 behavior of autofill popup with |
| 1745 // virtual keyboard. | 1745 // virtual keyboard. |
| 1746 #if !defined(OS_ANDROID) | 1746 #if !defined(OS_ANDROID) |
| 1747 FocusChangeComplete(); | 1747 FocusChangeComplete(); |
| 1748 #endif | 1748 #endif |
| 1749 } | 1749 } |
| 1750 | 1750 |
| 1751 ui::TextInputType RenderWidget::GetTextInputType() { | 1751 ui::TextInputType RenderWidget::GetTextInputType() { |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2263 // browser side (https://crbug.com/669219). | 2263 // browser side (https://crbug.com/669219). |
| 2264 // If there is no WebFrameWidget, then there will be no | 2264 // If there is no WebFrameWidget, then there will be no |
| 2265 // InputMethodControllers for a WebLocalFrame. | 2265 // InputMethodControllers for a WebLocalFrame. |
| 2266 return nullptr; | 2266 return nullptr; |
| 2267 } | 2267 } |
| 2268 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) | 2268 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) |
| 2269 ->getActiveWebInputMethodController(); | 2269 ->getActiveWebInputMethodController(); |
| 2270 } | 2270 } |
| 2271 | 2271 |
| 2272 } // namespace content | 2272 } // namespace content |
| OLD | NEW |