Lines Matching refs:GetController
248 static AcceleratorController* GetController();
274 AcceleratorController* AcceleratorControllerTest::GetController() {
284 ExitWarningHandler* ewh = GetController()->GetExitWarningHandlerForTest();
289 EXPECT_TRUE(GetController()->Process(press));
290 EXPECT_FALSE(GetController()->Process(release));
293 EXPECT_TRUE(GetController()->Process(press)); // second press before timer.
294 EXPECT_FALSE(GetController()->Process(release));
306 ExitWarningHandler* ewh = GetController()->GetExitWarningHandlerForTest();
311 EXPECT_TRUE(GetController()->Process(press));
312 EXPECT_FALSE(GetController()->Process(release));
323 ExitWarningHandler* ewh = GetController()->GetExitWarningHandlerForTest();
339 GetController()->Register(accelerator_a, &target);
342 EXPECT_TRUE(GetController()->Process(accelerator_a));
349 GetController()->Register(accelerator_a, &target1);
351 GetController()->Register(accelerator_a, &target2);
355 EXPECT_TRUE(GetController()->Process(accelerator_a));
363 GetController()->Register(accelerator_a, &target);
365 GetController()->Register(accelerator_b, &target);
369 GetController()->Unregister(accelerator_b, &target);
370 EXPECT_TRUE(GetController()->Process(accelerator_a));
375 GetController()->Unregister(accelerator_a, &target);
376 EXPECT_FALSE(GetController()->Process(accelerator_a));
383 GetController()->Register(accelerator_a, &target1);
385 GetController()->Register(accelerator_b, &target1);
388 GetController()->Register(accelerator_c, &target2);
389 GetController()->UnregisterAll(&target1);
392 EXPECT_FALSE(GetController()->Process(accelerator_a));
393 EXPECT_FALSE(GetController()->Process(accelerator_b));
397 EXPECT_TRUE(GetController()->Process(accelerator_c));
404 GetController()->Register(accelerator_a, &target1);
407 EXPECT_TRUE(GetController()->Process(accelerator_a));
412 EXPECT_FALSE(GetController()->Process(accelerator_b));
419 GetController()->Register(accelerator_a, &target);
420 EXPECT_TRUE(GetController()->IsRegistered(accelerator_a));
421 EXPECT_FALSE(GetController()->IsRegistered(accelerator_shift_a));
422 GetController()->UnregisterAll(&target);
423 EXPECT_FALSE(GetController()->IsRegistered(accelerator_a));
436 GetController()->PerformAction(WINDOW_SNAP_LEFT, dummy);
442 GetController()->PerformAction(WINDOW_SNAP_RIGHT, dummy);
450 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy);
454 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy);
460 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy);
461 GetController()->PerformAction(WINDOW_SNAP_LEFT, dummy);
464 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy);
465 GetController()->PerformAction(WINDOW_SNAP_RIGHT, dummy);
468 GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy);
470 GetController()->PerformAction(WINDOW_MINIMIZE, dummy);
477 GetController()->PerformAction(WINDOW_MINIMIZE, dummy);
490 GetController()->PerformAction(WINDOW_POSITION_CENTER, dummy);
507 GetController()->PerformAction(WINDOW_POSITION_CENTER, dummy);
517 GetController()->Register(accelerator_a, &target_a);
521 GetController()->Register(accelerator_b, &target_b);
563 GetController()->previous_accelerator_for_test().key_code());
565 GetController()->previous_accelerator_for_test().modifiers());
571 GetController()->previous_accelerator_for_test().key_code());
573 GetController()->previous_accelerator_for_test().modifiers());
581 GetController()->RegisterAccelerators(accelerators, arraysize(accelerators));
620 GetController()->Register(accelerator_a, &target);
668 EXPECT_TRUE(GetController()->Process(
672 GetController()->Process(ui::Accelerator(ui::VKEY_TAB, ui::EF_ALT_DOWN)));
674 EXPECT_TRUE(GetController()->Process(
683 EXPECT_TRUE(GetController()->Process(
686 GetController()->Process(ui::Accelerator(ui::VKEY_PRINT, ui::EF_NONE)));
687 EXPECT_TRUE(GetController()->Process(ui::Accelerator(
692 EXPECT_TRUE(GetController()->Process(
696 GetController()->Process(ui::Accelerator(ui::VKEY_PRINT, ui::EF_NONE)));
698 EXPECT_TRUE(GetController()->Process(ui::Accelerator(
712 EXPECT_FALSE(GetController()->Process(volume_mute));
716 EXPECT_FALSE(GetController()->Process(volume_down));
720 EXPECT_FALSE(GetController()->Process(volume_up));
729 EXPECT_TRUE(GetController()->Process(volume_mute));
733 EXPECT_TRUE(GetController()->Process(volume_down));
737 EXPECT_TRUE(GetController()->Process(volume_up));
749 GetController()->SetBrightnessControlDelegate(
752 EXPECT_FALSE(GetController()->Process(brightness_down));
756 EXPECT_FALSE(GetController()->Process(brightness_up));
763 GetController()->SetBrightnessControlDelegate(
766 EXPECT_TRUE(GetController()->Process(brightness_down));
770 EXPECT_TRUE(GetController()->Process(brightness_up));
781 EXPECT_TRUE(GetController()->Process(alt_brightness_down));
782 EXPECT_TRUE(GetController()->Process(alt_brightness_up));
785 GetController()->SetKeyboardBrightnessControlDelegate(
788 EXPECT_FALSE(GetController()->Process(alt_brightness_down));
792 EXPECT_FALSE(GetController()->Process(alt_brightness_up));
799 GetController()->SetKeyboardBrightnessControlDelegate(
802 EXPECT_TRUE(GetController()->Process(alt_brightness_down));
806 EXPECT_TRUE(GetController()->Process(alt_brightness_up));
814 EXPECT_TRUE(GetController()->Process(
818 EXPECT_TRUE(GetController()->Process(
825 ExitWarningHandler* ewh = GetController()->GetExitWarningHandlerForTest();
830 EXPECT_TRUE(GetController()->Process(
841 EXPECT_TRUE(GetController()->Process(
845 EXPECT_TRUE(GetController()->Process(
849 EXPECT_TRUE(GetController()->Process(
853 EXPECT_TRUE(GetController()->Process(
857 EXPECT_TRUE(GetController()->Process(
862 EXPECT_TRUE(GetController()->Process(
869 GetController()->Process(
881 GetController()->Process(ui::Accelerator(ui::VKEY_LWIN, ui::EF_NONE)));
883 GetController()->previous_accelerator_for_test().key_code());
886 GetController()->Process(ReleaseAccelerator(ui::VKEY_LWIN, ui::EF_NONE)));
892 GetController()->Process(ui::Accelerator(ui::VKEY_LWIN, ui::EF_NONE)));
894 GetController()->Process(ReleaseAccelerator(ui::VKEY_LWIN, ui::EF_NONE)));
899 GetController()->Process(ui::Accelerator(ui::VKEY_LWIN, ui::EF_NONE)));
901 GetController()->Process(ReleaseAccelerator(ui::VKEY_LWIN, ui::EF_NONE)));
907 GetController()->Process(ui::Accelerator(ui::VKEY_LWIN, ui::EF_NONE)));
909 GetController()->Process(ReleaseAccelerator(ui::VKEY_LWIN, ui::EF_NONE)));
923 EXPECT_FALSE(GetController()->Process(control_space));
924 EXPECT_FALSE(GetController()->Process(convert));
925 EXPECT_FALSE(GetController()->Process(non_convert));
926 EXPECT_FALSE(GetController()->Process(wide_half_1));
927 EXPECT_FALSE(GetController()->Process(wide_half_2));
928 EXPECT_FALSE(GetController()->Process(hangul));
930 GetController()->SetImeControlDelegate(
933 EXPECT_TRUE(GetController()->Process(control_space));
936 EXPECT_TRUE(GetController()->Process(convert));
938 EXPECT_TRUE(GetController()->Process(non_convert));
940 EXPECT_TRUE(GetController()->Process(wide_half_1));
942 EXPECT_TRUE(GetController()->Process(wide_half_2));
944 EXPECT_TRUE(GetController()->Process(hangul));
958 GetController()->SetImeControlDelegate(
961 EXPECT_FALSE(GetController()->Process(shift_alt_press));
962 EXPECT_TRUE(GetController()->Process(shift_alt));
964 EXPECT_FALSE(GetController()->Process(alt_shift_press));
965 EXPECT_TRUE(GetController()->Process(alt_shift));
976 EXPECT_FALSE(GetController()->Process(shift_alt_press));
977 EXPECT_FALSE(GetController()->Process(shift_alt_x_press));
978 EXPECT_FALSE(GetController()->Process(shift_alt_x));
979 EXPECT_FALSE(GetController()->Process(shift_alt));
991 EXPECT_FALSE(GetController()->Process(shift_alt_press));
992 EXPECT_FALSE(GetController()->Process(shift_alt_return_press));
993 EXPECT_FALSE(GetController()->Process(shift_alt_return));
994 EXPECT_TRUE(GetController()->Process(shift_alt));
1004 EXPECT_FALSE(GetController()->Process(shift_alt_press));
1005 EXPECT_FALSE(GetController()->Process(shift_alt_space_press));
1006 EXPECT_FALSE(GetController()->Process(shift_alt_space));
1007 EXPECT_TRUE(GetController()->Process(shift_alt));
1020 GetController()->SetImeControlDelegate(
1023 EXPECT_FALSE(GetController()->Process(shift_alt_press));
1024 EXPECT_TRUE(GetController()->Process(shift_alt));
1026 EXPECT_FALSE(GetController()->Process(alt_shift_press));
1027 EXPECT_TRUE(GetController()->Process(alt_shift));
1038 EXPECT_FALSE(GetController()->Process(shift_alt_press));
1039 EXPECT_FALSE(GetController()->Process(shift_alt_x_press));
1040 EXPECT_FALSE(GetController()->Process(shift_alt_x));
1041 EXPECT_FALSE(GetController()->Process(shift_alt));
1054 EXPECT_FALSE(GetController()->Process(shift_alt_return_press));
1058 EXPECT_FALSE(GetController()->Process(shift_alt_space_press));
1063 EXPECT_TRUE(GetController()->IsReservedAccelerator(
1065 EXPECT_TRUE(GetController()->IsReservedAccelerator(
1068 EXPECT_TRUE(GetController()->IsReservedAccelerator(
1072 EXPECT_FALSE(GetController()->IsReservedAccelerator(
1074 EXPECT_FALSE(GetController()->IsReservedAccelerator(
1076 EXPECT_FALSE(GetController()->IsReservedAccelerator(
1116 EXPECT_TRUE(GetController()->PerformAction(*it, dummy))
1127 EXPECT_TRUE(GetController()->Process(
1130 GetController()->Process(ui::Accelerator(ui::VKEY_PRINT, ui::EF_NONE)));
1131 EXPECT_TRUE(GetController()->Process(ui::Accelerator(
1135 EXPECT_TRUE(GetController()->Process(
1139 GetController()->Process(ui::Accelerator(ui::VKEY_PRINT, ui::EF_NONE)));
1141 EXPECT_TRUE(GetController()->Process(ui::Accelerator(
1151 GetController()->SetBrightnessControlDelegate(
1154 EXPECT_FALSE(GetController()->Process(brightness_down));
1158 EXPECT_FALSE(GetController()->Process(brightness_up));
1165 GetController()->SetBrightnessControlDelegate(
1168 EXPECT_TRUE(GetController()->Process(brightness_down));
1172 EXPECT_TRUE(GetController()->Process(brightness_up));
1181 EXPECT_TRUE(GetController()->Process(volume_mute));
1182 EXPECT_TRUE(GetController()->Process(volume_down));
1183 EXPECT_TRUE(GetController()->Process(volume_up));
1189 EXPECT_FALSE(GetController()->Process(volume_mute));
1193 EXPECT_FALSE(GetController()->Process(volume_down));
1197 EXPECT_FALSE(GetController()->Process(volume_up));
1206 EXPECT_TRUE(GetController()->Process(volume_mute));
1210 EXPECT_TRUE(GetController()->Process(volume_down));
1214 GetController()->Process(volume_up));
1229 GetController()->PerformAction(kActionsNeedingWindow[i], dummy));
1239 GetController()->PerformAction(kActionsNeedingWindow[i], dummy);
1244 GetController()->PerformAction(WINDOW_MINIMIZE, dummy);
1247 GetController()->PerformAction(kActionsNeedingWindow[i], dummy);