Lines Matching refs:host_

454     host_.reset(
456 view_.reset(new TestView(host_.get()));
458 host_->SetView(view_.get());
460 host_->Init();
461 host_->DisableGestureDebounce();
466 host_.reset();
486 host_->GetResizeParams(&render_size_params);
487 host_->SetInitialRenderSizeParams(render_size_params);
494 return host_->GetLatencyComponentId();
502 host_->OnMessageReceived(InputHostMsg_HandleInputEvent_ACK(0, ack));
519 host_->ForwardKeyboardEvent(native_event);
523 host_->ForwardMouseEvent(SyntheticWebMouseEventBuilder::Build(type));
528 host_->ForwardMouseEventWithLatencyInfo(
534 host_->ForwardWheelEvent(
543 host_->ForwardWheelEventWithLatencyInfo(
559 host_->ForwardMouseEvent(event);
565 host_->ForwardGestureEvent(
572 host_->ForwardGestureEventWithLatencyInfo(
585 host_->ForwardTouchEventWithLatencyInfo(touch_event_, ui::LatencyInfo());
616 scoped_ptr<MockRenderWidgetHost> host_;
647 host_->WasResized();
648 EXPECT_FALSE(host_->resize_ack_pending_);
657 host_->WasResized();
658 EXPECT_FALSE(host_->resize_ack_pending_);
659 EXPECT_EQ(original_size.size(), host_->old_resize_params_->new_size);
666 host_->WasResized();
667 EXPECT_FALSE(host_->resize_ack_pending_);
668 EXPECT_EQ(original_size.size(), host_->old_resize_params_->new_size);
675 EXPECT_FALSE(host_->resize_ack_pending_);
677 host_->WasResized();
678 EXPECT_TRUE(host_->resize_ack_pending_);
681 host_->OnUpdateRect(params);
682 EXPECT_TRUE(host_->resize_ack_pending_);
683 EXPECT_EQ(second_size.size(), host_->old_resize_params_->new_size);
690 host_->WasResized();
691 EXPECT_TRUE(host_->resize_ack_pending_);
692 EXPECT_EQ(second_size.size(), host_->old_resize_params_->new_size);
701 host_->OnUpdateRect(params);
702 EXPECT_TRUE(host_->resize_ack_pending_);
703 EXPECT_EQ(third_size.size(), host_->old_resize_params_->new_size);
709 host_->OnUpdateRect(params);
710 EXPECT_FALSE(host_->resize_ack_pending_);
711 EXPECT_EQ(third_size.size(), host_->old_resize_params_->new_size);
719 host_->WasResized();
720 EXPECT_FALSE(host_->resize_ack_pending_);
721 EXPECT_EQ(gfx::Size(), host_->old_resize_params_->new_size);
727 host_->WasResized();
728 EXPECT_FALSE(host_->resize_ack_pending_);
729 EXPECT_EQ(gfx::Size(0, 30), host_->old_resize_params_->new_size);
734 host_->WasResized();
735 EXPECT_FALSE(host_->resize_ack_pending_);
736 EXPECT_EQ(gfx::Size(0, 30), host_->old_resize_params_->new_size);
741 host_->WasResized();
742 EXPECT_FALSE(host_->resize_ack_pending_);
743 EXPECT_EQ(gfx::Size(0, 31), host_->old_resize_params_->new_size);
756 host_->WasResized();
757 EXPECT_TRUE(host_->resize_ack_pending_);
758 EXPECT_EQ(original_size.size(), host_->old_resize_params_->new_size);
764 host_->SetView(NULL);
765 host_->RendererExited(base::TERMINATION_STATUS_PROCESS_CRASHED, -1);
766 EXPECT_FALSE(host_->resize_ack_pending_);
767 EXPECT_EQ(gfx::Size(), host_->old_resize_params_->new_size);
770 host_->SetView(view_.get());
779 view.reset(new RenderWidgetHostViewAura(host_.get()));
783 view.reset(new RenderWidgetHostViewAndroid(host_.get(), NULL));
785 host_->SetView(view.get());
801 host_->SetView(NULL);
812 EXPECT_FALSE(host_->is_hidden_);
813 host_->WasHidden();
814 EXPECT_TRUE(host_->is_hidden_);
821 host_->OnUpdateRect(params);
825 host_->WasShown(ui::LatencyInfo());
826 EXPECT_FALSE(host_->is_hidden_);
952 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10));
955 EXPECT_FALSE(host_->unresponsive_timer_fired());
956 host_->StartHangMonitorTimeout(TimeDelta::FromSeconds(30));
964 EXPECT_TRUE(host_->unresponsive_timer_fired());
971 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10));
972 host_->StopHangMonitorTimeout();
975 EXPECT_FALSE(host_->unresponsive_timer_fired());
976 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10));
984 EXPECT_TRUE(host_->unresponsive_timer_fired());
991 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(100));
994 EXPECT_FALSE(host_->unresponsive_timer_fired());
995 host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(20));
1003 EXPECT_TRUE(host_->unresponsive_timer_fired());
1012 host_->set_hung_renderer_delay_ms(10);
1026 EXPECT_TRUE(host_->unresponsive_timer_fired());
1048 host_->OnMessageReceived(ViewHostMsg_HasTouchEventHandlers(0, false));
1049 host_->SetTouchEventEmulationEnabled(true);
1059 EXPECT_EQ(WebInputEvent::TouchStart, host_->acked_touch_event_type());
1064 EXPECT_EQ(WebInputEvent::TouchMove, host_->acked_touch_event_type());
1075 EXPECT_EQ(WebInputEvent::TouchMove, host_->acked_touch_event_type());
1082 EXPECT_EQ(WebInputEvent::TouchMove, host_->acked_touch_event_type());
1091 EXPECT_EQ(WebInputEvent::TouchMove, host_->acked_touch_event_type());
1099 EXPECT_EQ(WebInputEvent::TouchMove, host_->acked_touch_event_type());
1107 EXPECT_EQ(WebInputEvent::TouchEnd, host_->acked_touch_event_type());
1117 EXPECT_EQ(WebInputEvent::TouchStart, host_->acked_touch_event_type());
1122 EXPECT_EQ(WebInputEvent::TouchMove, host_->acked_touch_event_type());
1133 EXPECT_EQ(WebInputEvent::TouchMove, host_->acked_touch_event_type());
1140 EXPECT_EQ(WebInputEvent::TouchMove, host_->acked_touch_event_type());
1148 host_->SetTouchEventEmulationEnabled(false);
1149 EXPECT_EQ(WebInputEvent::TouchCancel, host_->acked_touch_event_type());
1163 host_->SetTouchEventEmulationEnabled(true);
1168 EXPECT_EQ(WebInputEvent::TouchStart, host_->acked_touch_event_type());
1174 EXPECT_EQ(WebInputEvent::TouchMove, host_->acked_touch_event_type());
1182 host_->SetTouchEventEmulationEnabled(false);
1183 EXPECT_EQ(WebInputEvent::TouchCancel, host_->acked_touch_event_type());
1191 host_->SetupForInputRouterTest(); \
1192 host_->INPUTMSG(); \
1193 EXPECT_TRUE(host_->mock_input_router()->send_event_called_); \
1204 host_->SetupForInputRouterTest(); \
1205 host_->Send(new INPUTMSG(host_->GetRoutingID())); \
1206 EXPECT_TRUE(host_->mock_input_router()->send_event_called_); \
1225 host_->SetupForInputRouterTest();
1226 host_->Send(new InputMsg_Replace(host_->GetRoutingID(), base::string16()));
1227 EXPECT_TRUE(host_->mock_input_router()->send_event_called_);
1231 host_->SetupForInputRouterTest();
1232 host_->Send(new InputMsg_ReplaceMisspelling(host_->GetRoutingID(),
1234 EXPECT_TRUE(host_->mock_input_router()->send_event_called_);
1238 host_->SetupForInputRouterTest();
1240 host_->SetIgnoreInputEvents(true);
1243 EXPECT_FALSE(host_->mock_input_router()->sent_keyboard_event_);
1246 EXPECT_FALSE(host_->mock_input_router()->sent_mouse_event_);
1249 EXPECT_FALSE(host_->mock_input_router()->sent_wheel_event_);
1253 EXPECT_FALSE(host_->mock_input_router()->sent_gesture_event_);
1257 EXPECT_FALSE(host_->mock_input_router()->send_touch_event_not_cancelled_);
1261 host_->SetupForInputRouterTest();
1262 host_->AddKeyPressEventCallback(
1268 EXPECT_TRUE(host_->mock_input_router()->sent_keyboard_event_);
1272 host_->SetupForInputRouterTest();
1274 host_->AddKeyPressEventCallback(
1282 EXPECT_FALSE(host_->mock_input_router()->sent_keyboard_event_);
1287 EXPECT_FALSE(host_->mock_input_router()->sent_keyboard_event_);
1289 EXPECT_FALSE(host_->mock_input_router()->sent_keyboard_event_);
1293 EXPECT_TRUE(host_->mock_input_router()->sent_keyboard_event_);
1295 host_->mock_input_router()->sent_keyboard_event_ = false;
1297 EXPECT_TRUE(host_->mock_input_router()->sent_keyboard_event_);
1301 host_->SetupForInputRouterTest();
1303 host_->AddMouseEventCallback(
1310 EXPECT_FALSE(host_->mock_input_router()->sent_mouse_event_);
1315 EXPECT_TRUE(host_->mock_input_router()->sent_mouse_event_);
1319 host_->SetupForInputRouterTest();
1324 EXPECT_TRUE(host_->mock_input_router()->message_received_);
1328 host_->SetupForInputRouterTest();
1330 host_->OnMessageReceived(ViewHostMsg_MoveCaret_ACK(0));
1332 EXPECT_TRUE(host_->mock_input_router()->message_received_);
1336 host_->SetupForInputRouterTest();
1338 host_->OnMessageReceived(ViewHostMsg_SelectRange_ACK(0));
1340 EXPECT_TRUE(host_->mock_input_router()->message_received_);
1344 host_->SetupForInputRouterTest();
1346 host_->OnMessageReceived(ViewHostMsg_HasTouchEventHandlers(0, true));
1348 EXPECT_TRUE(host_->mock_input_router()->message_received_);
1376 host_->OnMessageReceived(ViewHostMsg_HasTouchEventHandlers(0, true));
1431 host_->OnMessageReceived(ViewHostMsg_HasTouchEventHandlers(0, true));
1439 host_->ForwardWheelEvent(event);
1453 host_->ForwardMouseEvent(event);
1466 host_->ForwardGestureEvent(event);
1493 host_->ForwardKeyboardEvent(event);
1502 host_->SetView(new TestView(host_.get()));
1503 host_->RendererExited(base::TERMINATION_STATUS_PROCESS_CRASHED, -1);
1506 ASSERT_FALSE(host_->input_router()->HasPendingEvents());
1512 host_->SetView(new TestView(host_.get()));
1513 host_->WasHidden();
1515 ASSERT_TRUE(host_->is_hidden());
1516 host_->RendererExited(base::TERMINATION_STATUS_PROCESS_CRASHED, -1);
1517 ASSERT_FALSE(host_->is_hidden());
1520 ASSERT_FALSE(host_->input_router()->HasPendingEvents());
1530 host_->GetResizeParams(&resize_params);
1552 host_->WasResized();
1554 EXPECT_EQ(initial_size_, host_->old_resize_params_->new_size);
1555 EXPECT_TRUE(host_->resize_ack_pending_);