Lines Matching refs:state_
46 s.run_depth = state_ ? state_->run_depth + 1 : 1; in RunWithDispatcher()
48 RunState* previous_state = state_; in RunWithDispatcher()
49 state_ = &s; in RunWithDispatcher()
53 state_ = previous_state; in RunWithDispatcher()
57 DCHECK(state_); in Quit()
58 state_->should_quit = true; in Quit()
138 if (!state_) in PumpOutPendingPaintMessages()
152 if (state_->should_quit) // Handle WM_QUIT. in PumpOutPendingPaintMessages()
200 if (state_->should_quit) in DoRunLoop()
203 more_work_is_plausible |= state_->delegate->DoWork(); in DoRunLoop()
204 if (state_->should_quit) in DoRunLoop()
208 state_->delegate->DoDelayedWork(&delayed_work_time_); in DoRunLoop()
215 if (state_->should_quit) in DoRunLoop()
221 more_work_is_plausible = state_->delegate->DoIdleWork(); in DoRunLoop()
222 if (state_->should_quit) in DoRunLoop()
285 if (!state_) { in HandleWorkMessage()
298 if (state_->delegate->DoWork()) in HandleWorkMessage()
308 if (!state_) in HandleTimerMessage()
311 state_->delegate->DoDelayedWork(&delayed_work_time_); in HandleTimerMessage()
339 state_->should_quit = true; in ProcessMessageHelper()
353 if (state_->dispatcher) { in ProcessMessageHelper()
354 if (!state_->dispatcher->Dispatch(msg)) in ProcessMessageHelper()
355 state_->should_quit = true; in ProcessMessageHelper()
454 bool more_work_is_plausible = state_->delegate->DoWork(); in DoRunLoop()
455 if (state_->should_quit) in DoRunLoop()
459 if (state_->should_quit) in DoRunLoop()
463 state_->delegate->DoDelayedWork(&delayed_work_time_); in DoRunLoop()
464 if (state_->should_quit) in DoRunLoop()
470 more_work_is_plausible = state_->delegate->DoIdleWork(); in DoRunLoop()
471 if (state_->should_quit) in DoRunLoop()
486 DCHECK_EQ(1, state_->run_depth) << "Cannot nest an IO message loop!"; in WaitForWork()