| OLD | NEW | 
|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/app/chrome_dll_resource.h" | 5 #include "chrome/app/chrome_command_ids.h" | 
| 6 #include "chrome/browser/view_ids.h" | 6 #include "chrome/browser/view_ids.h" | 
| 7 #include "chrome/test/automated_ui_tests/automated_ui_test_base.h" | 7 #include "chrome/test/automated_ui_tests/automated_ui_test_base.h" | 
| 8 #include "chrome/test/automation/browser_proxy.h" | 8 #include "chrome/test/automation/browser_proxy.h" | 
| 9 #include "chrome/test/automation/tab_proxy.h" | 9 #include "chrome/test/automation/tab_proxy.h" | 
| 10 #include "chrome/test/automation/window_proxy.h" | 10 #include "chrome/test/automation/window_proxy.h" | 
| 11 #include "chrome/test/ui/ui_test.h" | 11 #include "chrome/test/ui/ui_test.h" | 
| 12 #include "gfx/point.h" | 12 #include "gfx/point.h" | 
| 13 #include "gfx/rect.h" | 13 #include "gfx/rect.h" | 
| 14 #include "views/event.h" | 14 #include "views/event.h" | 
| 15 | 15 | 
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 377 | 377 | 
| 378 scoped_refptr<WindowProxy> AutomatedUITestBase::GetAndActivateWindowForBrowser( | 378 scoped_refptr<WindowProxy> AutomatedUITestBase::GetAndActivateWindowForBrowser( | 
| 379     BrowserProxy* browser) { | 379     BrowserProxy* browser) { | 
| 380   if (!browser->BringToFront()) { | 380   if (!browser->BringToFront()) { | 
| 381     LogWarningMessage("failed_to_bring_window_to_front"); | 381     LogWarningMessage("failed_to_bring_window_to_front"); | 
| 382     return NULL; | 382     return NULL; | 
| 383   } | 383   } | 
| 384 | 384 | 
| 385   return browser->GetWindow(); | 385   return browser->GetWindow(); | 
| 386 } | 386 } | 
| OLD | NEW | 
|---|