| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_BASE_FIND_IN_PAGE_OBSERVER_H_ | 5 #ifndef CHROME_TEST_BASE_FIND_IN_PAGE_OBSERVER_H_ |
| 6 #define CHROME_TEST_BASE_FIND_IN_PAGE_OBSERVER_H_ | 6 #define CHROME_TEST_BASE_FIND_IN_PAGE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| 11 #include "ui/gfx/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 class MessageLoopRunner; | 14 class MessageLoopRunner; |
| 15 class WebContents; | 15 class WebContents; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ui_test_utils { | 18 namespace ui_test_utils { |
| 19 | 19 |
| 20 // FindInPageNotificationObserver allows blocking UI thread until find results | 20 // FindInPageNotificationObserver allows blocking UI thread until find results |
| 21 // are available. Typical usage: | 21 // are available. Typical usage: |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 bool seen_; // true after transition to expected state has been seen | 55 bool seen_; // true after transition to expected state has been seen |
| 56 bool running_; // indicates whether message loop is running | 56 bool running_; // indicates whether message loop is running |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(FindInPageNotificationObserver); | 58 DISALLOW_COPY_AND_ASSIGN(FindInPageNotificationObserver); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace ui_test_utils | 61 } // namespace ui_test_utils |
| 62 | 62 |
| 63 #endif // CHROME_TEST_BASE_FIND_IN_PAGE_OBSERVER_H_ | 63 #endif // CHROME_TEST_BASE_FIND_IN_PAGE_OBSERVER_H_ |
| OLD | NEW |