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

Side by Side Diff: content/public/test/browser_test_utils.h

Issue 2387353004: Delay Input.dispatchKeyEvent response until after key event ack. (Closed)
Patch Set: undo weakptr change, rebase to pull in dgozman's fix (crrev.com/437658) 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
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_BROWSER_TEST_UTILS_H_ 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 545
546 DISALLOW_COPY_AND_ASSIGN(MainThreadFrameObserver); 546 DISALLOW_COPY_AND_ASSIGN(MainThreadFrameObserver);
547 }; 547 };
548 548
549 // Watches for an input msg to be consumed. 549 // Watches for an input msg to be consumed.
550 class InputMsgWatcher : public BrowserMessageFilter { 550 class InputMsgWatcher : public BrowserMessageFilter {
551 public: 551 public:
552 InputMsgWatcher(RenderWidgetHost* render_widget_host, 552 InputMsgWatcher(RenderWidgetHost* render_widget_host,
553 blink::WebInputEvent::Type type); 553 blink::WebInputEvent::Type type);
554 554
555 bool HasReceivedAck() const;
556
555 // Wait until ack message occurs, returning the ack result from 557 // Wait until ack message occurs, returning the ack result from
556 // the message. 558 // the message.
557 uint32_t WaitForAck(); 559 uint32_t WaitForAck();
558 560
559 uint32_t last_event_ack_source() const { return ack_source_; } 561 uint32_t last_event_ack_source() const { return ack_source_; }
560 562
561 private: 563 private:
562 ~InputMsgWatcher() override; 564 ~InputMsgWatcher() override;
563 565
564 // Overridden BrowserMessageFilter methods. 566 // Overridden BrowserMessageFilter methods.
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 753
752 private: 754 private:
753 PwnMessageHelper(); // Not instantiable. 755 PwnMessageHelper(); // Not instantiable.
754 756
755 DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper); 757 DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper);
756 }; 758 };
757 759
758 } // namespace content 760 } // namespace content
759 761
760 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 762 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698