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/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1745 } | 1745 } |
1746 | 1746 |
1747 void RenderWidgetHostImpl::OnMsgBlur() { | 1747 void RenderWidgetHostImpl::OnMsgBlur() { |
1748 // Only RenderViewHost can deal with that message. | 1748 // Only RenderViewHost can deal with that message. |
1749 RecordAction(UserMetricsAction("BadMessageTerminate_RWH5")); | 1749 RecordAction(UserMetricsAction("BadMessageTerminate_RWH5")); |
1750 GetProcess()->ReceivedBadMessage(); | 1750 GetProcess()->ReceivedBadMessage(); |
1751 } | 1751 } |
1752 | 1752 |
1753 void RenderWidgetHostImpl::OnMsgHasTouchEventHandlers(bool has_handlers) { | 1753 void RenderWidgetHostImpl::OnMsgHasTouchEventHandlers(bool has_handlers) { |
1754 has_touch_handler_ = has_handlers; | 1754 has_touch_handler_ = has_handlers; |
| 1755 #if defined(OS_ANDROID) |
| 1756 if (view_) |
| 1757 view_->HasTouchEventHandlers(has_touch_handler_); |
| 1758 #endif |
1755 } | 1759 } |
1756 | 1760 |
1757 void RenderWidgetHostImpl::OnMsgSetCursor(const WebCursor& cursor) { | 1761 void RenderWidgetHostImpl::OnMsgSetCursor(const WebCursor& cursor) { |
1758 if (!view_) { | 1762 if (!view_) { |
1759 return; | 1763 return; |
1760 } | 1764 } |
1761 view_->UpdateCursor(cursor); | 1765 view_->UpdateCursor(cursor); |
1762 } | 1766 } |
1763 | 1767 |
1764 void RenderWidgetHostImpl::OnMsgTextInputStateChanged( | 1768 void RenderWidgetHostImpl::OnMsgTextInputStateChanged( |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2125 return; | 2129 return; |
2126 | 2130 |
2127 OnRenderAutoResized(new_size); | 2131 OnRenderAutoResized(new_size); |
2128 } | 2132 } |
2129 | 2133 |
2130 void RenderWidgetHostImpl::DetachDelegate() { | 2134 void RenderWidgetHostImpl::DetachDelegate() { |
2131 delegate_ = NULL; | 2135 delegate_ = NULL; |
2132 } | 2136 } |
2133 | 2137 |
2134 } // namespace content | 2138 } // namespace content |
OLD | NEW |