OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_UI_TEST_UTILS_H_ | 5 #ifndef CHROME_TEST_UI_TEST_UTILS_H_ |
6 #define CHROME_TEST_UI_TEST_UTILS_H_ | 6 #define CHROME_TEST_UI_TEST_UTILS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <set> | 10 #include <set> |
11 | 11 |
| 12 #include "gfx/native_widget_types.h" |
12 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
13 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
14 #include "base/scoped_temp_dir.h" | 15 #include "base/scoped_temp_dir.h" |
15 #include "base/string16.h" | 16 #include "base/string16.h" |
16 #include "chrome/browser/view_ids.h" | 17 #include "chrome/browser/view_ids.h" |
17 #include "chrome/common/notification_observer.h" | 18 #include "chrome/common/notification_observer.h" |
18 #include "chrome/common/notification_registrar.h" | 19 #include "chrome/common/notification_registrar.h" |
19 #include "chrome/common/notification_type.h" | 20 #include "chrome/common/notification_type.h" |
20 #include "chrome/common/notification_service.h" | 21 #include "chrome/common/notification_service.h" |
21 #include "chrome/test/automation/dom_element_proxy.h" | 22 #include "chrome/test/automation/dom_element_proxy.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 details_[Source<T>(source).ptr()] = *Details<U>(details).ptr(); | 410 details_[Source<T>(source).ptr()] = *Details<U>(details).ptr(); |
410 WindowedNotificationObserver<T>::Observe(type, source, details); | 411 WindowedNotificationObserver<T>::Observe(type, source, details); |
411 } | 412 } |
412 | 413 |
413 private: | 414 private: |
414 std::map<T*, U> details_; | 415 std::map<T*, U> details_; |
415 | 416 |
416 DISALLOW_COPY_AND_ASSIGN(WindowedNotificationObserverWithDetails); | 417 DISALLOW_COPY_AND_ASSIGN(WindowedNotificationObserverWithDetails); |
417 }; | 418 }; |
418 | 419 |
| 420 // Hide a native window. |
| 421 void HideNativeWindow(gfx::NativeWindow window); |
| 422 |
| 423 // Show and focus a native window. |
| 424 void ShowAndFocusNativeWindow(gfx::NativeWindow window); |
| 425 |
419 } // namespace ui_test_utils | 426 } // namespace ui_test_utils |
420 | 427 |
421 #endif // CHROME_TEST_UI_TEST_UTILS_H_ | 428 #endif // CHROME_TEST_UI_TEST_UTILS_H_ |
OLD | NEW |