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 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1760 RecordAction(UserMetricsAction("BadMessageTerminate_RWH5")); | 1760 RecordAction(UserMetricsAction("BadMessageTerminate_RWH5")); |
1761 GetProcess()->ReceivedBadMessage(); | 1761 GetProcess()->ReceivedBadMessage(); |
1762 } | 1762 } |
1763 | 1763 |
1764 void RenderWidgetHostImpl::OnMsgHasTouchEventHandlers(bool has_handlers) { | 1764 void RenderWidgetHostImpl::OnMsgHasTouchEventHandlers(bool has_handlers) { |
1765 if (has_touch_handler_ == has_handlers) | 1765 if (has_touch_handler_ == has_handlers) |
1766 return; | 1766 return; |
1767 has_touch_handler_ = has_handlers; | 1767 has_touch_handler_ = has_handlers; |
1768 if (!has_touch_handler_) | 1768 if (!has_touch_handler_) |
1769 touch_event_queue_->FlushQueue(); | 1769 touch_event_queue_->FlushQueue(); |
| 1770 #if defined(OS_ANDROID) |
| 1771 if (view_) |
| 1772 view_->HasTouchEventHandlers(has_touch_handler_); |
| 1773 #endif |
1770 } | 1774 } |
1771 | 1775 |
1772 void RenderWidgetHostImpl::OnMsgSetCursor(const WebCursor& cursor) { | 1776 void RenderWidgetHostImpl::OnMsgSetCursor(const WebCursor& cursor) { |
1773 if (!view_) { | 1777 if (!view_) { |
1774 return; | 1778 return; |
1775 } | 1779 } |
1776 view_->UpdateCursor(cursor); | 1780 view_->UpdateCursor(cursor); |
1777 } | 1781 } |
1778 | 1782 |
1779 void RenderWidgetHostImpl::OnMsgTextInputStateChanged( | 1783 void RenderWidgetHostImpl::OnMsgTextInputStateChanged( |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2161 return; | 2165 return; |
2162 | 2166 |
2163 OnRenderAutoResized(new_size); | 2167 OnRenderAutoResized(new_size); |
2164 } | 2168 } |
2165 | 2169 |
2166 void RenderWidgetHostImpl::DetachDelegate() { | 2170 void RenderWidgetHostImpl::DetachDelegate() { |
2167 delegate_ = NULL; | 2171 delegate_ = NULL; |
2168 } | 2172 } |
2169 | 2173 |
2170 } // namespace content | 2174 } // namespace content |
OLD | NEW |