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