| 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 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1904 | 1904 |
| 1905 void RenderWidgetHostImpl::OnSyntheticGestureCompleted( | 1905 void RenderWidgetHostImpl::OnSyntheticGestureCompleted( |
| 1906 SyntheticGesture::Result result) { | 1906 SyntheticGesture::Result result) { |
| 1907 Send(new InputMsg_SyntheticGestureCompleted(GetRoutingID())); | 1907 Send(new InputMsg_SyntheticGestureCompleted(GetRoutingID())); |
| 1908 } | 1908 } |
| 1909 | 1909 |
| 1910 bool RenderWidgetHostImpl::IgnoreInputEvents() const { | 1910 bool RenderWidgetHostImpl::IgnoreInputEvents() const { |
| 1911 return ignore_input_events_ || process_->IgnoreInputEvents(); | 1911 return ignore_input_events_ || process_->IgnoreInputEvents(); |
| 1912 } | 1912 } |
| 1913 | 1913 |
| 1914 bool RenderWidgetHostImpl::ShouldForwardTouchEvent() const { | |
| 1915 // It's important that the emulator sees a complete native touch stream, | |
| 1916 // allowing it to perform touch filtering as appropriate. | |
| 1917 // TODO(dgozman): Remove when touch stream forwarding issues resolved, see | |
| 1918 // crbug.com/375940. | |
| 1919 if (touch_emulator_ && touch_emulator_->enabled()) | |
| 1920 return true; | |
| 1921 | |
| 1922 return input_router_->ShouldForwardTouchEvent(); | |
| 1923 } | |
| 1924 | |
| 1925 void RenderWidgetHostImpl::StartUserGesture() { | 1914 void RenderWidgetHostImpl::StartUserGesture() { |
| 1926 OnUserGesture(); | 1915 OnUserGesture(); |
| 1927 } | 1916 } |
| 1928 | 1917 |
| 1929 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) { | 1918 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) { |
| 1930 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque)); | 1919 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque)); |
| 1931 } | 1920 } |
| 1932 | 1921 |
| 1933 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( | 1922 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( |
| 1934 const std::vector<EditCommand>& commands) { | 1923 const std::vector<EditCommand>& commands) { |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2200 } | 2189 } |
| 2201 #endif | 2190 #endif |
| 2202 | 2191 |
| 2203 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { | 2192 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { |
| 2204 if (view_) | 2193 if (view_) |
| 2205 return view_->PreferredReadbackFormat(); | 2194 return view_->PreferredReadbackFormat(); |
| 2206 return kN32_SkColorType; | 2195 return kN32_SkColorType; |
| 2207 } | 2196 } |
| 2208 | 2197 |
| 2209 } // namespace content | 2198 } // namespace content |
| OLD | NEW |