Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: content/renderer/render_widget.cc

Issue 2884243003: Add a mojo channel for frame messages. (Closed)
Patch Set: Fix presubmit warning I ignored Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 } 832 }
833 833
834 void RenderWidget::SendInputEventAck(blink::WebInputEvent::Type type, 834 void RenderWidget::SendInputEventAck(blink::WebInputEvent::Type type,
835 InputEventAckState ack_result, 835 InputEventAckState ack_result,
836 uint32_t touch_event_id) { 836 uint32_t touch_event_id) {
837 InputEventAck ack(InputEventAckSource::MAIN_THREAD, type, ack_result, 837 InputEventAck ack(InputEventAckSource::MAIN_THREAD, type, ack_result,
838 touch_event_id); 838 touch_event_id);
839 Send(new InputHostMsg_HandleInputEvent_ACK(routing_id_, ack)); 839 Send(new InputHostMsg_HandleInputEvent_ACK(routing_id_, ack));
840 } 840 }
841 841
842 scoped_refptr<MainThreadEventQueue> RenderWidget::GetInputEventQueue() {
843 return input_event_queue_;
844 }
845
842 void RenderWidget::OnCursorVisibilityChange(bool is_visible) { 846 void RenderWidget::OnCursorVisibilityChange(bool is_visible) {
843 if (GetWebWidget()) 847 if (GetWebWidget())
844 GetWebWidget()->SetCursorVisibilityState(is_visible); 848 GetWebWidget()->SetCursorVisibilityState(is_visible);
845 } 849 }
846 850
847 void RenderWidget::OnMouseCaptureLost() { 851 void RenderWidget::OnMouseCaptureLost() {
848 if (GetWebWidget()) 852 if (GetWebWidget())
849 GetWebWidget()->MouseCaptureLost(); 853 GetWebWidget()->MouseCaptureLost();
850 } 854 }
851 855
(...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after
2341 // browser side (https://crbug.com/669219). 2345 // browser side (https://crbug.com/669219).
2342 // If there is no WebFrameWidget, then there will be no 2346 // If there is no WebFrameWidget, then there will be no
2343 // InputMethodControllers for a WebLocalFrame. 2347 // InputMethodControllers for a WebLocalFrame.
2344 return nullptr; 2348 return nullptr;
2345 } 2349 }
2346 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) 2350 return static_cast<blink::WebFrameWidget*>(GetWebWidget())
2347 ->GetActiveWebInputMethodController(); 2351 ->GetActiveWebInputMethodController();
2348 } 2352 }
2349 2353
2350 } // namespace content 2354 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698