Home | History | Annotate | Download | only in idle

Lines Matching refs:threshold

19 int ClampThreshold(int threshold) {
20 if (threshold < kMinThreshold) {
21 threshold = kMinThreshold;
22 } else if (threshold > kMaxThreshold) {
23 threshold = kMaxThreshold;
26 return threshold;
34 int threshold;
35 EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &threshold));
36 threshold = ClampThreshold(threshold);
39 threshold, base::Bind(&IdleQueryStateFunction::IdleStateCallback, this));
51 int threshold;
52 EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &threshold));
53 threshold = ClampThreshold(threshold);
56 ->SetThreshold(extension_id(), threshold);