| 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 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1821 return overscroll_controller_.get(); | 1821 return overscroll_controller_.get(); |
| 1822 } | 1822 } |
| 1823 | 1823 |
| 1824 void RenderWidgetHostImpl::DidFlush() { | 1824 void RenderWidgetHostImpl::DidFlush() { |
| 1825 if (synthetic_gesture_controller_) | 1825 if (synthetic_gesture_controller_) |
| 1826 synthetic_gesture_controller_->OnDidFlushInput(); | 1826 synthetic_gesture_controller_->OnDidFlushInput(); |
| 1827 if (view_) | 1827 if (view_) |
| 1828 view_->OnDidFlushInput(); | 1828 view_->OnDidFlushInput(); |
| 1829 } | 1829 } |
| 1830 | 1830 |
| 1831 void RenderWidgetHostImpl::DidOverscroll(const DidOverscrollParams& params) { |
| 1832 if (view_) |
| 1833 view_->DidOverscroll(params); |
| 1834 } |
| 1835 |
| 1831 void RenderWidgetHostImpl::OnKeyboardEventAck( | 1836 void RenderWidgetHostImpl::OnKeyboardEventAck( |
| 1832 const NativeWebKeyboardEvent& event, | 1837 const NativeWebKeyboardEvent& event, |
| 1833 InputEventAckState ack_result) { | 1838 InputEventAckState ack_result) { |
| 1834 #if defined(OS_MACOSX) | 1839 #if defined(OS_MACOSX) |
| 1835 if (!is_hidden() && view_ && view_->PostProcessEventForPluginIme(event)) | 1840 if (!is_hidden() && view_ && view_->PostProcessEventForPluginIme(event)) |
| 1836 return; | 1841 return; |
| 1837 #endif | 1842 #endif |
| 1838 | 1843 |
| 1839 // We only send unprocessed key event upwards if we are not hidden, | 1844 // We only send unprocessed key event upwards if we are not hidden, |
| 1840 // because the user has moved away from us and no longer expect any effect | 1845 // 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... |
| 2315 } | 2320 } |
| 2316 } | 2321 } |
| 2317 | 2322 |
| 2318 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { | 2323 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { |
| 2319 if (view_) | 2324 if (view_) |
| 2320 return view_->PreferredReadbackFormat(); | 2325 return view_->PreferredReadbackFormat(); |
| 2321 return SkBitmap::kARGB_8888_Config; | 2326 return SkBitmap::kARGB_8888_Config; |
| 2322 } | 2327 } |
| 2323 | 2328 |
| 2324 } // namespace content | 2329 } // namespace content |
| OLD | NEW |