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 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 if (touch_emulator_ && touch_emulator_->enabled()) | 1915 if (touch_emulator_ && touch_emulator_->enabled()) |
1916 return true; | 1916 return true; |
1917 | 1917 |
1918 return input_router_->ShouldForwardTouchEvent(); | 1918 return input_router_->ShouldForwardTouchEvent(); |
1919 } | 1919 } |
1920 | 1920 |
1921 void RenderWidgetHostImpl::StartUserGesture() { | 1921 void RenderWidgetHostImpl::StartUserGesture() { |
1922 OnUserGesture(); | 1922 OnUserGesture(); |
1923 } | 1923 } |
1924 | 1924 |
| 1925 void RenderWidgetHostImpl::Stop() { |
| 1926 Send(new ViewMsg_Stop(GetRoutingID())); |
| 1927 } |
| 1928 |
1925 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) { | 1929 void RenderWidgetHostImpl::SetBackgroundOpaque(bool opaque) { |
1926 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque)); | 1930 Send(new ViewMsg_SetBackgroundOpaque(GetRoutingID(), opaque)); |
1927 } | 1931 } |
1928 | 1932 |
1929 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( | 1933 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( |
1930 const std::vector<EditCommand>& commands) { | 1934 const std::vector<EditCommand>& commands) { |
1931 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); | 1935 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); |
1932 } | 1936 } |
1933 | 1937 |
1934 void RenderWidgetHostImpl::ExecuteEditCommand(const std::string& command, | 1938 void RenderWidgetHostImpl::ExecuteEditCommand(const std::string& command, |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2314 } | 2318 } |
2315 #endif | 2319 #endif |
2316 | 2320 |
2317 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { | 2321 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { |
2318 if (view_) | 2322 if (view_) |
2319 return view_->PreferredReadbackFormat(); | 2323 return view_->PreferredReadbackFormat(); |
2320 return kN32_SkColorType; | 2324 return kN32_SkColorType; |
2321 } | 2325 } |
2322 | 2326 |
2323 } // namespace content | 2327 } // namespace content |
OLD | NEW |