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 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1926 if (touch_emulator_ && touch_emulator_->enabled()) | 1926 if (touch_emulator_ && touch_emulator_->enabled()) |
1927 return true; | 1927 return true; |
1928 | 1928 |
1929 return input_router_->ShouldForwardTouchEvent(); | 1929 return input_router_->ShouldForwardTouchEvent(); |
1930 } | 1930 } |
1931 | 1931 |
1932 void RenderWidgetHostImpl::StartUserGesture() { | 1932 void RenderWidgetHostImpl::StartUserGesture() { |
1933 OnUserGesture(); | 1933 OnUserGesture(); |
1934 } | 1934 } |
1935 | 1935 |
1936 void RenderWidgetHostImpl::Stop() { | |
1937 Send(new ViewMsg_Stop(GetRoutingID())); | |
1938 } | |
1939 | |
1940 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) { | 1936 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) { |
1941 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque)); | 1937 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque)); |
1942 } | 1938 } |
1943 | 1939 |
1944 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( | 1940 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( |
1945 const std::vector<EditCommand>& commands) { | 1941 const std::vector<EditCommand>& commands) { |
1946 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); | 1942 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); |
1947 } | 1943 } |
1948 | 1944 |
1949 void RenderWidgetHostImpl::ExecuteEditCommand(const std::string& command, | 1945 void RenderWidgetHostImpl::ExecuteEditCommand(const std::string& command, |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2329 } | 2325 } |
2330 #endif | 2326 #endif |
2331 | 2327 |
2332 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { | 2328 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { |
2333 if (view_) | 2329 if (view_) |
2334 return view_->PreferredReadbackFormat(); | 2330 return view_->PreferredReadbackFormat(); |
2335 return kN32_SkColorType; | 2331 return kN32_SkColorType; |
2336 } | 2332 } |
2337 | 2333 |
2338 } // namespace content | 2334 } // namespace content |
OLD | NEW |