Home | History | Annotate | Download | only in extensions

Lines Matching full:state

36   IdleState state;
44 static const char* IdleStateToDescription(IdleState state);
51 // Internal object which watches for changes in the system idle state.
66 const char* IdleStateToDescription(IdleState state) {
67 if (IDLE_STATE_ACTIVE == state)
69 if (IDLE_STATE_IDLE == state)
74 // Helper function for reporting the idle state. The lifetime of the object
101 if (IDLE_STATE_ACTIVE != polling_data.state)
102 return polling_data.state;
108 return polling_data.state;
110 // Update the new state with a poll. Note this updates time of last check.
111 polling_data.state = CalculateIdleStateAndUpdateTimestamp(threshold);
113 if (IDLE_STATE_ACTIVE != polling_data.state)
116 return polling_data.state;
120 IdleState state = CalculateIdleStateAndUpdateTimestamp(
122 if (state != polling_data.state) {
123 polling_data.state = state;
125 // Inform of change if the current state is IDLE_STATE_ACTIVE.
126 if (IDLE_STATE_ACTIVE == polling_data.state)
127 ExtensionIdleEventRouter::OnIdleStateChange(profile_, state);
130 // Create a secondary polling task until an active state is reached.
131 if (IDLE_STATE_ACTIVE != polling_data.state)
141 IdleState state = ThrottledCalculateIdleState(threshold, profile());
142 result_.reset(CreateIdleValue(state));
147 IdleState state) {
148 // Prepare the single argument of the current state.
150 args.Append(CreateIdleValue(state));