| 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 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1842 return overscroll_controller_.get(); | 1842 return overscroll_controller_.get(); |
| 1843 } | 1843 } |
| 1844 | 1844 |
| 1845 void RenderWidgetHostImpl::DidFlush() { | 1845 void RenderWidgetHostImpl::DidFlush() { |
| 1846 if (synthetic_gesture_controller_) | 1846 if (synthetic_gesture_controller_) |
| 1847 synthetic_gesture_controller_->OnDidFlushInput(); | 1847 synthetic_gesture_controller_->OnDidFlushInput(); |
| 1848 if (view_) | 1848 if (view_) |
| 1849 view_->OnDidFlushInput(); | 1849 view_->OnDidFlushInput(); |
| 1850 } | 1850 } |
| 1851 | 1851 |
| 1852 void RenderWidgetHostImpl::DidOverscroll(const DidOverscrollParams& params) { |
| 1853 if (view_) |
| 1854 view_->DidOverscroll(params); |
| 1855 } |
| 1856 |
| 1852 void RenderWidgetHostImpl::OnKeyboardEventAck( | 1857 void RenderWidgetHostImpl::OnKeyboardEventAck( |
| 1853 const NativeWebKeyboardEvent& event, | 1858 const NativeWebKeyboardEvent& event, |
| 1854 InputEventAckState ack_result) { | 1859 InputEventAckState ack_result) { |
| 1855 #if defined(OS_MACOSX) | 1860 #if defined(OS_MACOSX) |
| 1856 if (!is_hidden() && view_ && view_->PostProcessEventForPluginIme(event)) | 1861 if (!is_hidden() && view_ && view_->PostProcessEventForPluginIme(event)) |
| 1857 return; | 1862 return; |
| 1858 #endif | 1863 #endif |
| 1859 | 1864 |
| 1860 // We only send unprocessed key event upwards if we are not hidden, | 1865 // We only send unprocessed key event upwards if we are not hidden, |
| 1861 // because the user has moved away from us and no longer expect any effect | 1866 // because the user has moved away from us and no longer expect any effect |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2336 } | 2341 } |
| 2337 } | 2342 } |
| 2338 | 2343 |
| 2339 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { | 2344 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { |
| 2340 if (view_) | 2345 if (view_) |
| 2341 return view_->PreferredReadbackFormat(); | 2346 return view_->PreferredReadbackFormat(); |
| 2342 return SkBitmap::kARGB_8888_Config; | 2347 return SkBitmap::kARGB_8888_Config; |
| 2343 } | 2348 } |
| 2344 | 2349 |
| 2345 } // namespace content | 2350 } // namespace content |
| OLD | NEW |