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

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

Issue 1934703002: Fix keyboard focus for OOPIF-<webview>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test flakiness and comments in PS 7,8. 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_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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 513
514 void ReceivedAck(blink::WebInputEvent::Type ack_type, uint32_t ack_state); 514 void ReceivedAck(blink::WebInputEvent::Type ack_type, uint32_t ack_state);
515 515
516 blink::WebInputEvent::Type wait_for_type_; 516 blink::WebInputEvent::Type wait_for_type_;
517 uint32_t ack_result_; 517 uint32_t ack_result_;
518 base::Closure quit_; 518 base::Closure quit_;
519 519
520 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); 520 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher);
521 }; 521 };
522 522
523 // This observer is used to wait for its owner Frame to become focused.
524 class FrameFocusedObserver {
525 // Private impl struct which hides non public types including FrameTreeNode.
526 struct FrameTreeNodeObserverImpl;
527
528 public:
529 explicit FrameFocusedObserver(RenderFrameHost* owner_host);
530 ~FrameFocusedObserver();
531
532 void Wait();
533
534 private:
535 // FrameTreeNode::Observer
536 std::unique_ptr<FrameTreeNodeObserverImpl> impl_;
537
538 DISALLOW_COPY_AND_ASSIGN(FrameFocusedObserver);
539 };
540
523 } // namespace content 541 } // namespace content
524 542
525 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 543 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698