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

Side by Side Diff: content/renderer/mus/render_widget_mus_connection.h

Issue 2596193002: Clean up names and remove unnecessary parameter (Closed)
Patch Set: change parameter name, pass parameter directly Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 5 #ifndef CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
6 #define CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 6 #define CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "cc/output/compositor_frame_sink.h" 10 #include "cc/output/compositor_frame_sink.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool HasTouchEventHandlersAt(const gfx::Point& point) const override; 49 bool HasTouchEventHandlersAt(const gfx::Point& point) const override;
50 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event, 50 void ObserveGestureEventAndResult(const blink::WebGestureEvent& gesture_event,
51 const gfx::Vector2dF& gesture_unused_delta, 51 const gfx::Vector2dF& gesture_unused_delta,
52 bool event_processed) override; 52 bool event_processed) override;
53 void OnDidHandleKeyEvent() override; 53 void OnDidHandleKeyEvent() override;
54 void OnDidOverscroll(const ui::DidOverscrollParams& params) override; 54 void OnDidOverscroll(const ui::DidOverscrollParams& params) override;
55 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override; 55 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override;
56 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, 56 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type,
57 InputEventAckState ack_result) override; 57 InputEventAckState ack_result) override;
58 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; 58 void SetInputHandler(RenderWidgetInputHandler* input_handler) override;
59 void UpdateTextInputState(ShowIme show_ime, 59 void UpdateTextInputState(ShowIme show_ime) override;
60 ChangeSource change_source) override;
61 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; 60 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override;
62 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; 61 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override;
63 62
64 void OnConnectionLost(); 63 void OnConnectionLost();
65 void OnWindowInputEvent( 64 void OnWindowInputEvent(
66 ui::ScopedWebInputEvent input_event, 65 ui::ScopedWebInputEvent input_event,
67 const base::Callback<void(ui::mojom::EventResult)>& ack); 66 const base::Callback<void(ui::mojom::EventResult)>& ack);
68 67
69 const int routing_id_; 68 const int routing_id_;
70 RenderWidgetInputHandler* input_handler_; 69 RenderWidgetInputHandler* input_handler_;
71 std::unique_ptr<ui::WindowCompositorFrameSinkBinding> 70 std::unique_ptr<ui::WindowCompositorFrameSinkBinding>
72 window_compositor_frame_sink_binding_; 71 window_compositor_frame_sink_binding_;
73 scoped_refptr<CompositorMusConnection> compositor_mus_connection_; 72 scoped_refptr<CompositorMusConnection> compositor_mus_connection_;
74 73
75 base::Callback<void(ui::mojom::EventResult)> pending_ack_; 74 base::Callback<void(ui::mojom::EventResult)> pending_ack_;
76 75
77 // Used to verify single threaded access. 76 // Used to verify single threaded access.
78 base::ThreadChecker thread_checker_; 77 base::ThreadChecker thread_checker_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); 79 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection);
81 }; 80 };
82 81
83 } // namespace content 82 } // namespace content
84 83
85 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_ 84 #endif // CONTENT_RENDERER_MUS_RENDER_WIDGET_MUS_CONNECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698