| 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 CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_ | 5 #ifndef CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_ |
| 6 #define CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_ | 6 #define CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "chrome/test/base/ui_test_utils.h" |
| 11 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
| 12 #include "content/public/browser/notification_registrar.h" | 13 #include "content/public/browser/notification_registrar.h" |
| 13 #include "ui/web_dialogs/web_dialog_observer.h" | 14 #include "ui/web_dialogs/web_dialog_observer.h" |
| 14 | 15 |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 class JsInjectionReadyObserver; | 18 class JsInjectionReadyObserver; |
| 18 class RenderViewHost; | 19 class RenderViewHost; |
| 19 class WebUI; | 20 class WebUI; |
| 20 } | 21 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 48 const content::NotificationDetails& details) OVERRIDE; | 49 const content::NotificationDetails& details) OVERRIDE; |
| 49 | 50 |
| 50 content::NotificationRegistrar registrar_; | 51 content::NotificationRegistrar registrar_; |
| 51 | 52 |
| 52 // Observer to take some action when the dialog is ready for JavaScript | 53 // Observer to take some action when the dialog is ready for JavaScript |
| 53 // injection. | 54 // injection. |
| 54 content::JsInjectionReadyObserver* js_injection_ready_observer_; | 55 content::JsInjectionReadyObserver* js_injection_ready_observer_; |
| 55 content::WebUI* web_ui_; | 56 content::WebUI* web_ui_; |
| 56 bool done_; | 57 bool done_; |
| 57 bool running_; | 58 bool running_; |
| 59 scoped_refptr<ui_test_utils::MessageLoopRunner> message_loop_runner_; |
| 58 | 60 |
| 59 DISALLOW_COPY_AND_ASSIGN(TestWebDialogObserver); | 61 DISALLOW_COPY_AND_ASSIGN(TestWebDialogObserver); |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 #endif // CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_ | 64 #endif // CHROME_TEST_BASE_TEST_WEB_DIALOG_OBSERVER_H_ |
| OLD | NEW |