| 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 #include "chrome/browser/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
| 6 | 6 |
| 7 #include "chrome/browser/automation/automation_browser_tracker.h" | 7 #include "chrome/browser/automation/automation_browser_tracker.h" |
| 8 #include "chrome/browser/automation/automation_window_tracker.h" | 8 #include "chrome/browser/automation/automation_window_tracker.h" |
| 9 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
| 10 #include "chrome/browser/views/frame/browser_view.h" | 10 #include "chrome/browser/views/frame/browser_view.h" |
| 11 #include "chrome/browser/views/toolbar_view.h" | 11 #include "chrome/browser/views/toolbar_view.h" |
| 12 #include "chrome/test/automation/automation_messages.h" | 12 #include "chrome/common/automation_messages.h" |
| 13 #include "gfx/point.h" | 13 #include "gfx/point.h" |
| 14 #include "views/controls/menu/menu_wrapper.h" | 14 #include "views/controls/menu/menu_wrapper.h" |
| 15 #include "views/view.h" | 15 #include "views/view.h" |
| 16 #include "views/widget/root_view.h" | 16 #include "views/widget/root_view.h" |
| 17 #include "views/widget/widget.h" | 17 #include "views/widget/widget.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 // Helper class that waits until the focus has changed to a view other | 21 // Helper class that waits until the focus has changed to a view other |
| 22 // than the one with the provided view id. | 22 // than the one with the provided view id. |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 reply_message, true); | 187 reply_message, true); |
| 188 Send(reply_message); | 188 Send(reply_message); |
| 189 return; | 189 return; |
| 190 } | 190 } |
| 191 | 191 |
| 192 // Otherwise, register this reply message with the waiter, | 192 // Otherwise, register this reply message with the waiter, |
| 193 // which will handle responding to this IPC when the popup | 193 // which will handle responding to this IPC when the popup |
| 194 // menu opens. | 194 // menu opens. |
| 195 popup_menu_waiter_->set_reply_message(reply_message); | 195 popup_menu_waiter_->set_reply_message(reply_message); |
| 196 } | 196 } |
| OLD | NEW |