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

Side by Side Diff: ui/base/test/ui_controls_internal_win.cc

Issue 526063002: Change VKEY_MENU to VKEY_LMENU in interactive ui tests key sequence sending. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | 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 "ui/base/test/ui_controls_internal_win.h" 5 #include "ui/base/test/ui_controls_internal_win.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 i++; 208 i++;
209 } 209 }
210 210
211 if (shift) { 211 if (shift) {
212 if (!FillKeyboardInput(ui::VKEY_SHIFT, &input[i], false)) 212 if (!FillKeyboardInput(ui::VKEY_SHIFT, &input[i], false))
213 return false; 213 return false;
214 i++; 214 i++;
215 } 215 }
216 216
217 if (alt) { 217 if (alt) {
218 if (!FillKeyboardInput(ui::VKEY_MENU, &input[i], false)) 218 if (!FillKeyboardInput(ui::VKEY_LMENU, &input[i], false))
219 return false; 219 return false;
220 i++; 220 i++;
221 } 221 }
222 222
223 if (!FillKeyboardInput(key, &input[i], false)) 223 if (!FillKeyboardInput(key, &input[i], false))
224 return false; 224 return false;
225 i++; 225 i++;
226 226
227 if (!FillKeyboardInput(key, &input[i], true)) 227 if (!FillKeyboardInput(key, &input[i], true))
228 return false; 228 return false;
229 i++; 229 i++;
230 230
231 if (alt) { 231 if (alt) {
232 if (!FillKeyboardInput(ui::VKEY_MENU, &input[i], true)) 232 if (!FillKeyboardInput(ui::VKEY_LMENU, &input[i], true))
233 return false; 233 return false;
234 i++; 234 i++;
235 } 235 }
236 236
237 if (shift) { 237 if (shift) {
238 if (!FillKeyboardInput(ui::VKEY_SHIFT, &input[i], true)) 238 if (!FillKeyboardInput(ui::VKEY_SHIFT, &input[i], true))
239 return false; 239 return false;
240 i++; 240 i++;
241 } 241 }
242 242
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 return false; 335 return false;
336 336
337 if (dispatcher.get()) 337 if (dispatcher.get())
338 dispatcher->AddRef(); 338 dispatcher->AddRef();
339 339
340 return true; 340 return true;
341 } 341 }
342 342
343 } // namespace internal 343 } // namespace internal
344 } // namespace ui_controls 344 } // namespace ui_controls
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698