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

Side by Side Diff: content/browser/devtools/protocol/input_handler.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" 10 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h"
(...skipping 17 matching lines...) Expand all
28 namespace input { 28 namespace input {
29 29
30 class InputHandler { 30 class InputHandler {
31 public: 31 public:
32 typedef DevToolsProtocolClient::Response Response; 32 typedef DevToolsProtocolClient::Response Response;
33 33
34 InputHandler(); 34 InputHandler();
35 virtual ~InputHandler(); 35 virtual ~InputHandler();
36 36
37 void SetRenderWidgetHost(RenderWidgetHostImpl* host); 37 void SetRenderWidgetHost(RenderWidgetHostImpl* host);
38 void SetClient(scoped_ptr<Client> client); 38 void SetClient(std::unique_ptr<Client> client);
39 void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata); 39 void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata);
40 40
41 Response DispatchKeyEvent(const std::string& type, 41 Response DispatchKeyEvent(const std::string& type,
42 const int* modifiers, 42 const int* modifiers,
43 const double* timestamp, 43 const double* timestamp,
44 const std::string* text, 44 const std::string* text,
45 const std::string* unmodified_text, 45 const std::string* unmodified_text,
46 const std::string* key_identifier, 46 const std::string* key_identifier,
47 const std::string* code, 47 const std::string* code,
48 const std::string* key, 48 const std::string* key,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 DevToolsCommandId command_id); 117 DevToolsCommandId command_id);
118 118
119 void OnScrollFinished(SyntheticSmoothScrollGestureParams gesture_params, 119 void OnScrollFinished(SyntheticSmoothScrollGestureParams gesture_params,
120 int repeat_count, 120 int repeat_count,
121 base::TimeDelta repeat_delay, 121 base::TimeDelta repeat_delay,
122 std::string interaction_marker_name, 122 std::string interaction_marker_name,
123 DevToolsCommandId command_id, 123 DevToolsCommandId command_id,
124 SyntheticGesture::Result result); 124 SyntheticGesture::Result result);
125 125
126 RenderWidgetHostImpl* host_; 126 RenderWidgetHostImpl* host_;
127 scoped_ptr<Client> client_; 127 std::unique_ptr<Client> client_;
128 float page_scale_factor_; 128 float page_scale_factor_;
129 gfx::SizeF scrollable_viewport_size_; 129 gfx::SizeF scrollable_viewport_size_;
130 base::WeakPtrFactory<InputHandler> weak_factory_; 130 base::WeakPtrFactory<InputHandler> weak_factory_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(InputHandler); 132 DISALLOW_COPY_AND_ASSIGN(InputHandler);
133 }; 133 };
134 134
135 } // namespace input 135 } // namespace input
136 } // namespace devtools 136 } // namespace devtools
137 } // namespace content 137 } // namespace content
138 138
139 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ 139 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/emulation_handler.cc ('k') | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698