1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_THEME_HELPER_MAC_H_
6 #define CONTENT_BROWSER_THEME_HELPER_MAC_H_
8 #include "base/memory/singleton.h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
14 class ThemeHelperMac
: public NotificationObserver
{
16 // Return pointer to the singleton instance for the current process, or NULL
18 static ThemeHelperMac
* GetInstance();
20 static void SendThemeChangeToAllRenderers(
21 float initial_button_delay
,
22 float autoscroll_button_delay
,
23 bool jump_on_track_click
,
27 friend struct DefaultSingletonTraits
<ThemeHelperMac
>;
30 virtual ~ThemeHelperMac();
32 // Overridden from NotificationObserver:
33 virtual void Observe(int type
,
34 const NotificationSource
& source
,
35 const NotificationDetails
& details
) OVERRIDE
;
37 NotificationRegistrar registrar_
;
39 DISALLOW_COPY_AND_ASSIGN(ThemeHelperMac
);
42 } // namespace content
44 #endif // CONTENT_BROWSER_THEME_HELPER_MAC_H_