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

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

Issue 2884243003: Add a mojo channel for frame messages. (Closed)
Patch Set: Fix dcheng's initial comments Created 3 years, 7 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
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 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after
2340 // browser side (https://crbug.com/669219). 2344 // browser side (https://crbug.com/669219).
2341 // If there is no WebFrameWidget, then there will be no 2345 // If there is no WebFrameWidget, then there will be no
2342 // InputMethodControllers for a WebLocalFrame. 2346 // InputMethodControllers for a WebLocalFrame.
2343 return nullptr; 2347 return nullptr;
2344 } 2348 }
2345 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) 2349 return static_cast<blink::WebFrameWidget*>(GetWebWidget())
2346 ->GetActiveWebInputMethodController(); 2350 ->GetActiveWebInputMethodController();
2347 } 2351 }
2348 2352
2349 } // namespace content 2353 } // namespace content
OLDNEW
« content/renderer/input/frame_input_handler_impl.cc ('K') | « content/renderer/render_widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698