| 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 "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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |