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

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: rebase, make sure that tests build and run Created 4 years, 2 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 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 327
328 // content::WebContentsObserver implementation: 328 // content::WebContentsObserver implementation:
329 bool OnMessageReceived(const IPC::Message& message, 329 bool OnMessageReceived(const IPC::Message& message,
330 content::RenderFrameHost* render_frame_host) override; 330 content::RenderFrameHost* render_frame_host) override;
331 void DidFinishNavigation( 331 void DidFinishNavigation(
332 content::NavigationHandle* navigation_handle) override; 332 content::NavigationHandle* navigation_handle) override;
333 void DidRedirectNavigation( 333 void DidRedirectNavigation(
334 content::NavigationHandle* navigation_handle) override; 334 content::NavigationHandle* navigation_handle) override;
335 void NavigationStopped() override; 335 void NavigationStopped() override;
336 void OnInputEvent(const blink::WebInputEvent& event) override; 336 void OnInputEvent(const blink::WebInputEvent& event) override;
337 void OnInputEventAck(const blink::WebInputEvent& event, bool was_synthetic)
338 override {};
337 void WasShown() override; 339 void WasShown() override;
338 void WasHidden() override; 340 void WasHidden() override;
339 void RenderProcessGone(base::TerminationStatus status) override; 341 void RenderProcessGone(base::TerminationStatus status) override;
340 void RenderViewHostChanged(content::RenderViewHost* old_host, 342 void RenderViewHostChanged(content::RenderViewHost* old_host,
341 content::RenderViewHost* new_host) override; 343 content::RenderViewHost* new_host) override;
342 344
343 // This method is forwarded from the MetricsNavigationThrottle. 345 // This method is forwarded from the MetricsNavigationThrottle.
344 void WillStartNavigationRequest(content::NavigationHandle* navigation_handle); 346 void WillStartNavigationRequest(content::NavigationHandle* navigation_handle);
345 347
346 // A resource request completed on the IO thread. 348 // A resource request completed on the IO thread.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 421
420 // Has the MWCO observed at least one navigation? 422 // Has the MWCO observed at least one navigation?
421 bool has_navigated_; 423 bool has_navigated_;
422 424
423 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); 425 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver);
424 }; 426 };
425 427
426 } // namespace page_load_metrics 428 } // namespace page_load_metrics
427 429
428 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ 430 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698