OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ash/autoclick/autoclick_controller.h" | 5 #include "ash/autoclick/autoclick_controller.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/wm/coordinate_conversion.h" | 8 #include "ash/wm/coordinate_conversion.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "ui/aura/env.h" | 10 #include "ui/aura/env.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 click_location, | 192 click_location, |
193 click_location, | 193 click_location, |
194 mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON, | 194 mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON, |
195 ui::EF_LEFT_MOUSE_BUTTON); | 195 ui::EF_LEFT_MOUSE_BUTTON); |
196 ui::MouseEvent release_event(ui::ET_MOUSE_RELEASED, | 196 ui::MouseEvent release_event(ui::ET_MOUSE_RELEASED, |
197 click_location, | 197 click_location, |
198 click_location, | 198 click_location, |
199 mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON, | 199 mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON, |
200 ui::EF_LEFT_MOUSE_BUTTON); | 200 ui::EF_LEFT_MOUSE_BUTTON); |
201 | 201 |
202 dispatcher->AsRootWindowHostDelegate()->OnHostMouseEvent(&press_event); | 202 dispatcher->AsWindowTreeHostDelegate()->OnHostMouseEvent(&press_event); |
203 dispatcher->AsRootWindowHostDelegate()->OnHostMouseEvent(&release_event); | 203 dispatcher->AsWindowTreeHostDelegate()->OnHostMouseEvent(&release_event); |
204 } | 204 } |
205 | 205 |
206 // static. | 206 // static. |
207 AutoclickController* AutoclickController::CreateInstance() { | 207 AutoclickController* AutoclickController::CreateInstance() { |
208 return new AutoclickControllerImpl(); | 208 return new AutoclickControllerImpl(); |
209 } | 209 } |
210 | 210 |
211 } // namespace ash | 211 } // namespace ash |
OLD | NEW |