| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/location.h" | 5 #include "base/location.h" |
| 6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
| 7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
| 8 #include "build/build_config.h" |
| 8 #include "chrome/browser/extensions/extension_browsertest.h" | 9 #include "chrome/browser/extensions/extension_browsertest.h" |
| 9 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" | 10 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" |
| 10 #include "chrome/browser/ui/views/frame/browser_view.h" | 11 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 11 #include "chrome/browser/ui/views/frame/test_with_browser_view.h" | 12 #include "chrome/browser/ui/views/frame/test_with_browser_view.h" |
| 12 #include "chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h" | 13 #include "chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h" |
| 13 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" | 14 #include "chrome/browser/ui/views/toolbar/app_menu_button.h" |
| 14 #include "chrome/browser/ui/views/toolbar/browser_actions_container.h" | 15 #include "chrome/browser/ui/views/toolbar/browser_actions_container.h" |
| 15 #include "chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.h" | 16 #include "chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.h" |
| 16 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" | 17 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
| 17 #include "chrome/test/base/interactive_test_utils.h" | 18 #include "chrome/test/base/interactive_test_utils.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 ASSERT_TRUE(view); | 163 ASSERT_TRUE(view); |
| 163 | 164 |
| 164 gfx::Point browser_action_view_loc = test::GetCenterInScreenCoordinates(view); | 165 gfx::Point browser_action_view_loc = test::GetCenterInScreenCoordinates(view); |
| 165 gfx::Point app_button_loc = | 166 gfx::Point app_button_loc = |
| 166 test::GetCenterInScreenCoordinates(toolbar_view()->app_menu_button()); | 167 test::GetCenterInScreenCoordinates(toolbar_view()->app_menu_button()); |
| 167 | 168 |
| 168 // Perform a drag and drop from the browser action view to the app button, | 169 // Perform a drag and drop from the browser action view to the app button, |
| 169 // which should open the app menu. | 170 // which should open the app menu. |
| 170 DoDragAndDrop(browser_action_view_loc, app_button_loc); | 171 DoDragAndDrop(browser_action_view_loc, app_button_loc); |
| 171 } | 172 } |
| OLD | NEW |