| 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 <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1851 return INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; | 1851 return INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS; |
| 1852 | 1852 |
| 1853 if (!process_->HasConnection()) | 1853 if (!process_->HasConnection()) |
| 1854 return INPUT_EVENT_ACK_STATE_UNKNOWN; | 1854 return INPUT_EVENT_ACK_STATE_UNKNOWN; |
| 1855 | 1855 |
| 1856 if (event.type == WebInputEvent::MouseDown || | 1856 if (event.type == WebInputEvent::MouseDown || |
| 1857 event.type == WebInputEvent::GestureTapDown) { | 1857 event.type == WebInputEvent::GestureTapDown) { |
| 1858 OnUserGesture(); | 1858 OnUserGesture(); |
| 1859 } | 1859 } |
| 1860 | 1860 |
| 1861 if (delegate_) { |
| 1862 if (event.type == WebInputEvent::MouseDown || |
| 1863 event.type == WebInputEvent::GestureTapDown || |
| 1864 event.type == WebInputEvent::RawKeyDown) { |
| 1865 delegate_->OnUserInteraction(event.type); |
| 1866 } |
| 1867 } |
| 1868 |
| 1861 return view_ ? view_->FilterInputEvent(event) | 1869 return view_ ? view_->FilterInputEvent(event) |
| 1862 : INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 1870 : INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
| 1863 } | 1871 } |
| 1864 | 1872 |
| 1865 void RenderWidgetHostImpl::IncrementInFlightEventCount() { | 1873 void RenderWidgetHostImpl::IncrementInFlightEventCount() { |
| 1866 increment_in_flight_event_count(); | 1874 increment_in_flight_event_count(); |
| 1867 if (!is_hidden_) | 1875 if (!is_hidden_) |
| 1868 StartHangMonitorTimeout(hung_renderer_delay_); | 1876 StartHangMonitorTimeout(hung_renderer_delay_); |
| 1869 } | 1877 } |
| 1870 | 1878 |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2186 } | 2194 } |
| 2187 | 2195 |
| 2188 #if defined(OS_WIN) | 2196 #if defined(OS_WIN) |
| 2189 gfx::NativeViewAccessible | 2197 gfx::NativeViewAccessible |
| 2190 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2198 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
| 2191 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2199 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
| 2192 } | 2200 } |
| 2193 #endif | 2201 #endif |
| 2194 | 2202 |
| 2195 } // namespace content | 2203 } // namespace content |
| OLD | NEW |