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

Side by Side Diff: webrtc/base/macutils.cc

Issue 2114013002: mac: Remove unused GetQuickTimeVersion(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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 | « webrtc/base/macutils.h ('k') | webrtc/base/macutils_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2007 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2007 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 case 7: 122 case 7:
123 return kMacOSLion; 123 return kMacOSLion;
124 case 8: 124 case 8:
125 return kMacOSMountainLion; 125 return kMacOSMountainLion;
126 case 9: 126 case 9:
127 return kMacOSMavericks; 127 return kMacOSMavericks;
128 } 128 }
129 return kMacOSNewer; 129 return kMacOSNewer;
130 } 130 }
131 131
132 bool GetQuickTimeVersion(std::string* out) {
133 int ver;
134 if (!GetGestalt(gestaltQuickTimeVersion, &ver)) {
135 return false;
136 }
137
138 std::stringstream ss;
139 ss << std::hex << ver;
140 *out = ss.str();
141 return true;
142 }
143
144 bool RunAppleScript(const std::string& script) { 132 bool RunAppleScript(const std::string& script) {
145 // TODO(thaloun): Add a .mm file that contains something like this: 133 // TODO(thaloun): Add a .mm file that contains something like this:
146 // NSString source from script 134 // NSString source from script
147 // NSAppleScript* appleScript = [[NSAppleScript alloc] initWithSource:&source] 135 // NSAppleScript* appleScript = [[NSAppleScript alloc] initWithSource:&source]
148 // if (appleScript != nil) { 136 // if (appleScript != nil) {
149 // [appleScript executeAndReturnError:nil] 137 // [appleScript executeAndReturnError:nil]
150 // [appleScript release] 138 // [appleScript release]
151 #ifndef CARBON_DEPRECATED 139 #ifndef CARBON_DEPRECATED
152 ComponentInstance component = NULL; 140 ComponentInstance component = NULL;
153 AEDesc script_desc; 141 AEDesc script_desc;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 #else 200 #else
213 // TODO(thaloun): Support applescripts with the NSAppleScript API. 201 // TODO(thaloun): Support applescripts with the NSAppleScript API.
214 return false; 202 return false;
215 #endif // CARBON_DEPRECATED 203 #endif // CARBON_DEPRECATED
216 } 204 }
217 #endif // WEBRTC_MAC && !defined(WEBRTC_IOS) 205 #endif // WEBRTC_MAC && !defined(WEBRTC_IOS)
218 206
219 /////////////////////////////////////////////////////////////////////////////// 207 ///////////////////////////////////////////////////////////////////////////////
220 208
221 } // namespace rtc 209 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/macutils.h ('k') | webrtc/base/macutils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698