Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Unified Diff: content/browser/theme_helper_mac.h

Issue 63203003: Have Blink be told of scrollbar changes rather than paying attention itself (Chromium side). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WebKit:: -> blink:: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/theme_helper_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/theme_helper_mac.h
diff --git a/content/browser/theme_helper_mac.h b/content/browser/theme_helper_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..ab04337209d6f2037e5e07369e3d1330b8dc9e34
--- /dev/null
+++ b/content/browser/theme_helper_mac.h
@@ -0,0 +1,44 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#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"
+
+namespace content {
+
+class ThemeHelperMac : public NotificationObserver {
+ public:
+ // Return pointer to the singleton instance for the current process, or NULL
+ // if none.
+ static ThemeHelperMac* GetInstance();
+
+ static void SendThemeChangeToAllRenderers(
+ float initial_button_delay,
+ float autoscroll_button_delay,
+ bool jump_on_track_click,
+ bool redraw);
+
+ private:
+ friend struct DefaultSingletonTraits<ThemeHelperMac>;
+
+ ThemeHelperMac();
+ virtual ~ThemeHelperMac();
+
+ // Overridden from NotificationObserver:
+ virtual void Observe(int type,
+ const NotificationSource& source,
+ const NotificationDetails& details) OVERRIDE;
+
+ NotificationRegistrar registrar_;
+
+ DISALLOW_COPY_AND_ASSIGN(ThemeHelperMac);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_THEME_HELPER_MAC_H_
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/theme_helper_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698