#ifndef CONTENT_BROWSER_THEME_HELPER_MAC_H_
#define CONTENT_BROWSER_THEME_HELPER_MAC_H_
#include "base/memory/singleton.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h"
namespace content {
class ThemeHelperMac : public NotificationObserver {
public:
static ThemeHelperMac* GetInstance();
static blink::ScrollerStyle GetPreferredScrollerStyle();
static void SendThemeChangeToAllRenderers(
float initial_button_delay,
float autoscroll_button_delay,
bool jump_on_track_click,
blink::ScrollerStyle preferred_scroller_style,
bool redraw);
private:
friend struct DefaultSingletonTraits<ThemeHelperMac>;
ThemeHelperMac();
virtual ~ThemeHelperMac();
virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(ThemeHelperMac);
};
}
#endif