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

Side by Side Diff: chrome/test/ui_test_utils.h

Issue 2986004: [Mac]Port browser_keyevents_browsertest.cc and browser_focus_uitest.cc to Mac. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Enable BrowserFocusTest and BrowserKeyEventsTests on Mac. Created 10 years, 5 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) 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
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_
OLDNEW
« no previous file with comments | « chrome/test/interactive_ui/interactive_ui_tests.gypi ('k') | chrome/test/ui_test_utils_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698