| 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 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2071 | 2071 |
| 2072 void RenderWidgetHostImpl::OnHasTouchEventHandlers(bool has_handlers) { | 2072 void RenderWidgetHostImpl::OnHasTouchEventHandlers(bool has_handlers) { |
| 2073 has_touch_handler_ = has_handlers; | 2073 has_touch_handler_ = has_handlers; |
| 2074 } | 2074 } |
| 2075 | 2075 |
| 2076 OverscrollController* RenderWidgetHostImpl::GetOverscrollController() const { | 2076 OverscrollController* RenderWidgetHostImpl::GetOverscrollController() const { |
| 2077 return overscroll_controller_.get(); | 2077 return overscroll_controller_.get(); |
| 2078 } | 2078 } |
| 2079 | 2079 |
| 2080 void RenderWidgetHostImpl::DidFlush() { | 2080 void RenderWidgetHostImpl::DidFlush() { |
| 2081 if (synthetic_gesture_controller_) |
| 2082 synthetic_gesture_controller_->OnDidFlushInput(); |
| 2081 if (view_) | 2083 if (view_) |
| 2082 view_->OnDidFlushInput(); | 2084 view_->OnDidFlushInput(); |
| 2083 } | 2085 } |
| 2084 | 2086 |
| 2085 void RenderWidgetHostImpl::OnKeyboardEventAck( | 2087 void RenderWidgetHostImpl::OnKeyboardEventAck( |
| 2086 const NativeWebKeyboardEvent& event, | 2088 const NativeWebKeyboardEvent& event, |
| 2087 InputEventAckState ack_result) { | 2089 InputEventAckState ack_result) { |
| 2088 #if defined(OS_MACOSX) | 2090 #if defined(OS_MACOSX) |
| 2089 if (!is_hidden() && view_ && view_->PostProcessEventForPluginIme(event)) | 2091 if (!is_hidden() && view_ && view_->PostProcessEventForPluginIme(event)) |
| 2090 return; | 2092 return; |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2551 } | 2553 } |
| 2552 } | 2554 } |
| 2553 | 2555 |
| 2554 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { | 2556 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { |
| 2555 if (view_) | 2557 if (view_) |
| 2556 return view_->PreferredReadbackFormat(); | 2558 return view_->PreferredReadbackFormat(); |
| 2557 return SkBitmap::kARGB_8888_Config; | 2559 return SkBitmap::kARGB_8888_Config; |
| 2558 } | 2560 } |
| 2559 | 2561 |
| 2560 } // namespace content | 2562 } // namespace content |
| OLD | NEW |