blob: 4da9637672a14bea8af9a6236f63d83bd3121db4 [file] [log] [blame]
// Copyright 2014 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "power_manager/powerd/policy/backlight_controller_observer_stub.h"
namespace power_manager::policy {
void BacklightControllerObserverStub::Clear() {
changes_.clear();
}
void BacklightControllerObserverStub::OnBrightnessChange(
double brightness_percent,
BacklightBrightnessChange_Cause cause,
BacklightController* source) {
ChangeTuple change;
change.percent = brightness_percent;
change.cause = cause;
change.source = source;
changes_.push_back(change);
}
} // namespace power_manager::policy