Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: ash/autoclick/autoclick_controller.cc

Issue 126513004: Rename RootWindowHost to WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/cancel_mode.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/cancel_mode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698