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

Side by Side Diff: chrome/browser/page_load_metrics/metrics_web_contents_observer.h

Issue 2387353004: Delay Input.dispatchKeyEvent response until after key event ack. (Closed)
Patch Set: fix test Created 4 years 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 CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_
6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // content::WebContentsObserver implementation: 54 // content::WebContentsObserver implementation:
55 bool OnMessageReceived(const IPC::Message& message, 55 bool OnMessageReceived(const IPC::Message& message,
56 content::RenderFrameHost* render_frame_host) override; 56 content::RenderFrameHost* render_frame_host) override;
57 void DidFinishNavigation( 57 void DidFinishNavigation(
58 content::NavigationHandle* navigation_handle) override; 58 content::NavigationHandle* navigation_handle) override;
59 void DidRedirectNavigation( 59 void DidRedirectNavigation(
60 content::NavigationHandle* navigation_handle) override; 60 content::NavigationHandle* navigation_handle) override;
61 void NavigationStopped() override; 61 void NavigationStopped() override;
62 void OnInputEvent(const blink::WebInputEvent& event) override; 62 void OnInputEvent(const blink::WebInputEvent& event) override;
63 void OnInputEventAck(const blink::WebInputEvent& event) override {};
63 void WasShown() override; 64 void WasShown() override;
64 void WasHidden() override; 65 void WasHidden() override;
65 void RenderProcessGone(base::TerminationStatus status) override; 66 void RenderProcessGone(base::TerminationStatus status) override;
66 void RenderViewHostChanged(content::RenderViewHost* old_host, 67 void RenderViewHostChanged(content::RenderViewHost* old_host,
67 content::RenderViewHost* new_host) override; 68 content::RenderViewHost* new_host) override;
68 69
69 // This method is forwarded from the MetricsNavigationThrottle. 70 // This method is forwarded from the MetricsNavigationThrottle.
70 void WillStartNavigationRequest(content::NavigationHandle* navigation_handle); 71 void WillStartNavigationRequest(content::NavigationHandle* navigation_handle);
71 72
72 // A resource request completed on the IO thread. 73 // A resource request completed on the IO thread.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 146
146 // Has the MWCO observed at least one navigation? 147 // Has the MWCO observed at least one navigation?
147 bool has_navigated_; 148 bool has_navigated_;
148 149
149 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); 150 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver);
150 }; 151 };
151 152
152 } // namespace page_load_metrics 153 } // namespace page_load_metrics
153 154
154 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ 155 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698