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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 1984173002: Log First User Interaction in Page Load Metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove style change by formatter 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void ResizeRectChanged(const gfx::Rect& new_rect) override; 162 void ResizeRectChanged(const gfx::Rect& new_rect) override;
163 void RestartHangMonitorTimeout() override; 163 void RestartHangMonitorTimeout() override;
164 void DisableHangMonitorForTesting() override; 164 void DisableHangMonitorForTesting() override;
165 void SetIgnoreInputEvents(bool ignore_input_events) override; 165 void SetIgnoreInputEvents(bool ignore_input_events) override;
166 void WasResized() override; 166 void WasResized() override;
167 void AddKeyPressEventCallback(const KeyPressEventCallback& callback) override; 167 void AddKeyPressEventCallback(const KeyPressEventCallback& callback) override;
168 void RemoveKeyPressEventCallback( 168 void RemoveKeyPressEventCallback(
169 const KeyPressEventCallback& callback) override; 169 const KeyPressEventCallback& callback) override;
170 void AddMouseEventCallback(const MouseEventCallback& callback) override; 170 void AddMouseEventCallback(const MouseEventCallback& callback) override;
171 void RemoveMouseEventCallback(const MouseEventCallback& callback) override; 171 void RemoveMouseEventCallback(const MouseEventCallback& callback) override;
172 void AddInputEventObserver(
173 RenderWidgetHost::InputEventObserver* observer) override;
174 void RemoveInputEventObserver(
175 RenderWidgetHost::InputEventObserver* observer) override;
172 void GetWebScreenInfo(blink::WebScreenInfo* result) override; 176 void GetWebScreenInfo(blink::WebScreenInfo* result) override;
173 bool GetScreenColorProfile(std::vector<char>* color_profile) override; 177 bool GetScreenColorProfile(std::vector<char>* color_profile) override;
174 void HandleCompositorProto(const std::vector<uint8_t>& proto) override; 178 void HandleCompositorProto(const std::vector<uint8_t>& proto) override;
175 179
176 // Notification that the screen info has changed. 180 // Notification that the screen info has changed.
177 void NotifyScreenInfoChanged(); 181 void NotifyScreenInfoChanged();
178 182
179 // Forces redraw in the renderer and when the update reaches the browser 183 // Forces redraw in the renderer and when the update reaches the browser
180 // grabs snapshot from the compositor. Returns PNG-encoded snapshot. 184 // grabs snapshot from the compositor. Returns PNG-encoded snapshot.
181 using GetSnapshotFromBrowserCallback = 185 using GetSnapshotFromBrowserCallback =
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 bool waiting_for_screen_rects_ack_; 699 bool waiting_for_screen_rects_ack_;
696 gfx::Rect last_view_screen_rect_; 700 gfx::Rect last_view_screen_rect_;
697 gfx::Rect last_window_screen_rect_; 701 gfx::Rect last_window_screen_rect_;
698 702
699 // Keyboard event listeners. 703 // Keyboard event listeners.
700 std::vector<KeyPressEventCallback> key_press_event_callbacks_; 704 std::vector<KeyPressEventCallback> key_press_event_callbacks_;
701 705
702 // Mouse event callbacks. 706 // Mouse event callbacks.
703 std::vector<MouseEventCallback> mouse_event_callbacks_; 707 std::vector<MouseEventCallback> mouse_event_callbacks_;
704 708
709 // Input event callbacks.
710 base::ObserverList<RenderWidgetHost::InputEventObserver>
711 input_event_observers_;
712
705 // If true, then we should repaint when restoring even if we have a 713 // If true, then we should repaint when restoring even if we have a
706 // backingstore. This flag is set to true if we receive a paint message 714 // backingstore. This flag is set to true if we receive a paint message
707 // while is_hidden_ to true. Even though we tell the render widget to hide 715 // while is_hidden_ to true. Even though we tell the render widget to hide
708 // itself, a paint message could already be in flight at that point. 716 // itself, a paint message could already be in flight at that point.
709 bool needs_repainting_on_restore_; 717 bool needs_repainting_on_restore_;
710 718
711 // This is true if the renderer is currently unresponsive. 719 // This is true if the renderer is currently unresponsive.
712 bool is_unresponsive_; 720 bool is_unresponsive_;
713 721
714 // This value denotes the number of input events yet to be acknowledged 722 // This value denotes the number of input events yet to be acknowledged
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 base::TimeDelta new_content_rendering_delay_; 818 base::TimeDelta new_content_rendering_delay_;
811 819
812 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 820 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
813 821
814 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 822 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
815 }; 823 };
816 824
817 } // namespace content 825 } // namespace content
818 826
819 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 827 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698