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

Side by Side Diff: content/browser/theme_helper_mac.mm

Issue 1133523005: mac: Suppress partial availability warnings in theme helper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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 unified diff | Download patch
« no previous file with comments | « base/mac/sdk_forward_declarations.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "content/browser/theme_helper_mac.h" 5 #include "content/browser/theme_helper_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/mac/sdk_forward_declarations.h" 10 #include "base/mac/sdk_forward_declarations.h"
11 #include "content/common/view_messages.h" 11 #include "content/common/view_messages.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "content/public/browser/notification_service.h" 13 #include "content/public/browser/notification_service.h"
14 #include "content/public/browser/notification_types.h" 14 #include "content/public/browser/notification_types.h"
15 #include "content/public/browser/render_process_host.h" 15 #include "content/public/browser/render_process_host.h"
16 #include "content/public/common/content_switches.h" 16 #include "content/public/common/content_switches.h"
17 17
18 // Declare notification names from the 10.7 SDK.
19 #if !defined(MAC_OS_X_VERSION_10_7) || \
20 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
21
22 NSString* NSPreferredScrollerStyleDidChangeNotification =
23 @"NSPreferredScrollerStyleDidChangeNotification";
24
25 #endif
26
27 @interface ScrollbarPrefsObserver : NSObject 18 @interface ScrollbarPrefsObserver : NSObject
28 19
29 + (void)registerAsObserver; 20 + (void)registerAsObserver;
30 + (void)appearancePrefsChanged:(NSNotification*)notification; 21 + (void)appearancePrefsChanged:(NSNotification*)notification;
31 + (void)behaviorPrefsChanged:(NSNotification*)notification; 22 + (void)behaviorPrefsChanged:(NSNotification*)notification;
32 + (void)notifyPrefsChangedWithRedraw:(BOOL)redraw; 23 + (void)notifyPrefsChangedWithRedraw:(BOOL)redraw;
33 24
34 @end 25 @end
35 26
36 @implementation ScrollbarPrefsObserver 27 @implementation ScrollbarPrefsObserver
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr(); 133 RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr();
143 rph->Send(new ViewMsg_UpdateScrollbarTheme( 134 rph->Send(new ViewMsg_UpdateScrollbarTheme(
144 [defaults floatForKey:@"NSScrollerButtonDelay"], 135 [defaults floatForKey:@"NSScrollerButtonDelay"],
145 [defaults floatForKey:@"NSScrollerButtonPeriod"], 136 [defaults floatForKey:@"NSScrollerButtonPeriod"],
146 [defaults boolForKey:@"AppleScrollerPagingBehavior"], 137 [defaults boolForKey:@"AppleScrollerPagingBehavior"],
147 GetPreferredScrollerStyle(), 138 GetPreferredScrollerStyle(),
148 false)); 139 false));
149 } 140 }
150 141
151 } // namespace content 142 } // namespace content
OLDNEW
« no previous file with comments | « base/mac/sdk_forward_declarations.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698