OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_THEME_HELPER_MAC_H_ | 5 #ifndef CONTENT_BROWSER_THEME_HELPER_MAC_H_ |
6 #define CONTENT_BROWSER_THEME_HELPER_MAC_H_ | 6 #define CONTENT_BROWSER_THEME_HELPER_MAC_H_ |
7 | 7 |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 static void SendThemeChangeToAllRenderers( | 25 static void SendThemeChangeToAllRenderers( |
26 float initial_button_delay, | 26 float initial_button_delay, |
27 float autoscroll_button_delay, | 27 float autoscroll_button_delay, |
28 bool jump_on_track_click, | 28 bool jump_on_track_click, |
29 blink::ScrollerStyle preferred_scroller_style, | 29 blink::ScrollerStyle preferred_scroller_style, |
30 bool redraw, | 30 bool redraw, |
31 bool scroll_animation_enabled, | 31 bool scroll_animation_enabled, |
32 blink::ScrollbarButtonsPlacement button_placement); | 32 blink::ScrollbarButtonsPlacement button_placement); |
33 | 33 |
34 private: | 34 private: |
35 friend struct DefaultSingletonTraits<ThemeHelperMac>; | 35 friend struct base::DefaultSingletonTraits<ThemeHelperMac>; |
36 | 36 |
37 ThemeHelperMac(); | 37 ThemeHelperMac(); |
38 ~ThemeHelperMac() override; | 38 ~ThemeHelperMac() override; |
39 | 39 |
40 // Overridden from NotificationObserver: | 40 // Overridden from NotificationObserver: |
41 void Observe(int type, | 41 void Observe(int type, |
42 const NotificationSource& source, | 42 const NotificationSource& source, |
43 const NotificationDetails& details) override; | 43 const NotificationDetails& details) override; |
44 | 44 |
45 NotificationRegistrar registrar_; | 45 NotificationRegistrar registrar_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(ThemeHelperMac); | 47 DISALLOW_COPY_AND_ASSIGN(ThemeHelperMac); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace content | 50 } // namespace content |
51 | 51 |
52 #endif // CONTENT_BROWSER_THEME_HELPER_MAC_H_ | 52 #endif // CONTENT_BROWSER_THEME_HELPER_MAC_H_ |
OLD | NEW |