Skip to content

Commit

Permalink
Bug 1017463 - Remove SetLight / GetLight from PHal.ipdl. r=dhylands
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilik Kuo committed Jun 11, 2014
1 parent b3b134d commit 7fde215
Show file tree
Hide file tree
Showing 8 changed files with 153 additions and 253 deletions.
12 changes: 0 additions & 12 deletions hal/Hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,18 +420,6 @@ void SetScreenBrightness(double aBrightness)
PROXY_IF_SANDBOXED(SetScreenBrightness(clamped(aBrightness, 0.0, 1.0)));
}

bool SetLight(LightType light, const LightConfiguration& aConfig)
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(SetLight(light, aConfig), false);
}

bool GetLight(LightType light, LightConfiguration* aConfig)
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(GetLight(light, aConfig), false);
}

class SystemClockChangeObserversManager : public ObserversManager<int64_t>
{
protected:
Expand Down
18 changes: 0 additions & 18 deletions hal/Hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,24 +168,6 @@ bool GetCpuSleepAllowed();
*/
void SetCpuSleepAllowed(bool aAllowed);

/**
* Set the value of a light to a particular color, with a specific flash pattern.
* light specifices which light. See Hal.idl for the list of constants
* mode specifies user set or based on ambient light sensor
* flash specifies whether or how to flash the light
* flashOnMS and flashOffMS specify the pattern for XXX flash mode
* color specifies the color. If the light doesn't support color, the given color is
* transformed into a brightness, or just an on/off if that is all the light is capable of.
* returns true if successful and false if failed.
*/
bool SetLight(hal::LightType light, const hal::LightConfiguration& aConfig);
/**
* GET the value of a light returning a particular color, with a specific flash pattern.
* returns true if successful and false if failed.
*/
bool GetLight(hal::LightType light, hal::LightConfiguration* aConfig);


/**
* Register an observer for the sensor of given type.
*
Expand Down
2 changes: 1 addition & 1 deletion hal/HalInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* The difference between Hal.h and HalInternal.h is that methods declared in
* HalInternal.h don't appear in the hal namespace. That also means this file
* should not be included except by HalInternal.h and HalSandbox.h.
* should not be included except by HalImpl.h and HalSandbox.h.
*/

#ifndef MOZ_HAL_NAMESPACE
Expand Down
28 changes: 0 additions & 28 deletions hal/fallback/FallbackLights.cpp

This file was deleted.

Loading

0 comments on commit 7fde215

Please sign in to comment.