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