| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "views/window/window.h" | 32 #include "views/window/window.h" |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 #if defined(TOOLKIT_VIEWS) | 35 #if defined(TOOLKIT_VIEWS) |
| 36 #include "chrome/browser/ui/views/frame/browser_view.h" | 36 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 37 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 37 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 38 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" | 38 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 #if defined(TOOLKIT_USES_GTK) | 41 #if defined(TOOLKIT_USES_GTK) |
| 42 #include "chrome/browser/gtk/view_id_util.h" | 42 #include "chrome/browser/ui/gtk/view_id_util.h" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
| 46 #include <Psapi.h> |
| 46 #include <windows.h> | 47 #include <windows.h> |
| 47 #include <Psapi.h> | |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 #if defined(OS_LINUX) | 50 #if defined(OS_LINUX) |
| 51 #define MAYBE_FocusTraversal FocusTraversal | 51 #define MAYBE_FocusTraversal FocusTraversal |
| 52 #define MAYBE_FocusTraversalOnInterstitial FocusTraversalOnInterstitial | 52 #define MAYBE_FocusTraversalOnInterstitial FocusTraversalOnInterstitial |
| 53 // TODO(jcampan): http://crbug.com/23683 | 53 // TODO(jcampan): http://crbug.com/23683 |
| 54 #define MAYBE_TabsRememberFocusFindInPage FAILS_TabsRememberFocusFindInPage | 54 #define MAYBE_TabsRememberFocusFindInPage FAILS_TabsRememberFocusFindInPage |
| 55 #elif defined(OS_MACOSX) | 55 #elif defined(OS_MACOSX) |
| 56 // TODO(suzhe): http://crbug.com/60973 (following two tests) | 56 // TODO(suzhe): http://crbug.com/60973 (following two tests) |
| 57 #define MAYBE_FocusTraversal DISABLED_FocusTraversal | 57 #define MAYBE_FocusTraversal DISABLED_FocusTraversal |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 ui_test_utils::CrashTab(browser()->GetSelectedTabContents()); | 834 ui_test_utils::CrashTab(browser()->GetSelectedTabContents()); |
| 835 browser()->Reload(CURRENT_TAB); | 835 browser()->Reload(CURRENT_TAB); |
| 836 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); | 836 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); |
| 837 | 837 |
| 838 // Focus should now be on the tab contents. | 838 // Focus should now be on the tab contents. |
| 839 browser()->ShowDownloadsTab(); | 839 browser()->ShowDownloadsTab(); |
| 840 ASSERT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW)); | 840 ASSERT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW)); |
| 841 } | 841 } |
| 842 | 842 |
| 843 } // namespace | 843 } // namespace |
| OLD | NEW |