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

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

Issue 2581153003: Reland of Delay Input.dispatchKeyEvent response until after key event ack. (Closed)
Patch Set: rebase and resolve merge conflicts 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 549
550 DISALLOW_COPY_AND_ASSIGN(MainThreadFrameObserver); 550 DISALLOW_COPY_AND_ASSIGN(MainThreadFrameObserver);
551 }; 551 };
552 552
553 // Watches for an input msg to be consumed. 553 // Watches for an input msg to be consumed.
554 class InputMsgWatcher : public BrowserMessageFilter { 554 class InputMsgWatcher : public BrowserMessageFilter {
555 public: 555 public:
556 InputMsgWatcher(RenderWidgetHost* render_widget_host, 556 InputMsgWatcher(RenderWidgetHost* render_widget_host,
557 blink::WebInputEvent::Type type); 557 blink::WebInputEvent::Type type);
558 558
559 bool HasReceivedAck() const;
560
559 // Wait until ack message occurs, returning the ack result from 561 // Wait until ack message occurs, returning the ack result from
560 // the message. 562 // the message.
561 uint32_t WaitForAck(); 563 uint32_t WaitForAck();
562 564
563 uint32_t last_event_ack_source() const { return ack_source_; } 565 uint32_t last_event_ack_source() const { return ack_source_; }
564 566
565 private: 567 private:
566 ~InputMsgWatcher() override; 568 ~InputMsgWatcher() override;
567 569
568 // Overridden BrowserMessageFilter methods. 570 // Overridden BrowserMessageFilter methods.
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 757
756 private: 758 private:
757 PwnMessageHelper(); // Not instantiable. 759 PwnMessageHelper(); // Not instantiable.
758 760
759 DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper); 761 DISALLOW_COPY_AND_ASSIGN(PwnMessageHelper);
760 }; 762 };
761 763
762 } // namespace content 764 } // namespace content
763 765
764 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 766 #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