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

Side by Side Diff: content/public/browser/render_widget_host.h

Issue 2086453002: Log First User Interaction in Page Load Metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 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
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 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 virtual void AddKeyPressEventCallback( 232 virtual void AddKeyPressEventCallback(
233 const KeyPressEventCallback& callback) = 0; 233 const KeyPressEventCallback& callback) = 0;
234 virtual void RemoveKeyPressEventCallback( 234 virtual void RemoveKeyPressEventCallback(
235 const KeyPressEventCallback& callback) = 0; 235 const KeyPressEventCallback& callback) = 0;
236 236
237 // Add/remove a callback that can handle all kinds of mouse events. 237 // Add/remove a callback that can handle all kinds of mouse events.
238 typedef base::Callback<bool(const blink::WebMouseEvent&)> MouseEventCallback; 238 typedef base::Callback<bool(const blink::WebMouseEvent&)> MouseEventCallback;
239 virtual void AddMouseEventCallback(const MouseEventCallback& callback) = 0; 239 virtual void AddMouseEventCallback(const MouseEventCallback& callback) = 0;
240 virtual void RemoveMouseEventCallback(const MouseEventCallback& callback) = 0; 240 virtual void RemoveMouseEventCallback(const MouseEventCallback& callback) = 0;
241 241
242 // Observer for WebInputEvents (but not input event acks).
243 class InputEventObserver {
244 public:
245 virtual ~InputEventObserver() {}
246
247 virtual void OnInputEvent(const blink::WebInputEvent&) = 0;
248 };
249
250 // Add/remove an input event observer.
251 virtual void AddInputEventObserver(InputEventObserver* observer) = 0;
252 virtual void RemoveInputEventObserver(InputEventObserver* observer) = 0;
253
242 // Get the screen info corresponding to this render widget. 254 // Get the screen info corresponding to this render widget.
243 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) = 0; 255 virtual void GetWebScreenInfo(blink::WebScreenInfo* result) = 0;
244 // Get the color profile corresponding to this render widget. 256 // Get the color profile corresponding to this render widget.
245 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0; 257 virtual bool GetScreenColorProfile(std::vector<char>* color_profile) = 0;
246 258
247 // Sends a compositor proto to the render widget. 259 // Sends a compositor proto to the render widget.
248 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; 260 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0;
249 }; 261 };
250 262
251 } // namespace content 263 } // namespace content
252 264
253 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 265 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698