| OLD | NEW |
| 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 // Puts text/rtf |rtf| on the clipboard. | 567 // Puts text/rtf |rtf| on the clipboard. |
| 568 void SetRtf(const std::string& rtf); | 568 void SetRtf(const std::string& rtf); |
| 569 | 569 |
| 570 // Puts plain text |text| on the clipboard. | 570 // Puts plain text |text| on the clipboard. |
| 571 void SetText(const std::string& text); | 571 void SetText(const std::string& text); |
| 572 | 572 |
| 573 private: | 573 private: |
| 574 DISALLOW_COPY_AND_ASSIGN(BrowserTestClipboardScope); | 574 DISALLOW_COPY_AND_ASSIGN(BrowserTestClipboardScope); |
| 575 }; | 575 }; |
| 576 | 576 |
| 577 // This observer is used to wait for its owner Frame to become focused. |
| 578 class FrameFocusedObserver { |
| 579 // Private impl struct which hides non public types including FrameTreeNode. |
| 580 class FrameTreeNodeObserverImpl; |
| 581 |
| 582 public: |
| 583 explicit FrameFocusedObserver(RenderFrameHost* owner_host); |
| 584 ~FrameFocusedObserver(); |
| 585 |
| 586 void Wait(); |
| 587 |
| 588 private: |
| 589 // FrameTreeNode::Observer |
| 590 std::unique_ptr<FrameTreeNodeObserverImpl> impl_; |
| 591 |
| 592 DISALLOW_COPY_AND_ASSIGN(FrameFocusedObserver); |
| 593 }; |
| 594 |
| 577 } // namespace content | 595 } // namespace content |
| 578 | 596 |
| 579 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ | 597 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ |
| OLD | NEW |