| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/mac/mac_util.h" | 5 #include "base/mac/mac_util.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 #import <IOKit/IOKitLib.h> | 8 #import <IOKit/IOKitLib.h> |
| 9 | 9 |
| 10 #include <errno.h> | 10 #include <errno.h> |
| 11 #include <string.h> | 11 #include <string.h> |
| 12 #include <sys/utsname.h> | 12 #include <sys/utsname.h> |
| 13 #include <sys/xattr.h> | 13 #include <sys/xattr.h> |
| 14 | 14 |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/mac/bundle_locations.h" | 17 #include "base/mac/bundle_locations.h" |
| 18 #include "base/mac/foundation_util.h" | 18 #include "base/mac/foundation_util.h" |
| 19 #include "base/mac/mac_logging.h" | 19 #include "base/mac/mac_logging.h" |
| 20 #include "base/mac/scoped_cftyperef.h" | 20 #include "base/mac/scoped_cftyperef.h" |
| 21 #include "base/memory/scoped_generic_obj.h" | 21 #include "base/memory/scoped_generic_obj.h" |
| 22 #include "base/memory/scoped_nsobject.h" | 22 #include "base/memory/scoped_nsobject.h" |
| 23 #include "base/string_piece.h" | |
| 24 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
| 24 #include "base/strings/string_piece.h" |
| 25 #include "base/strings/sys_string_conversions.h" | 25 #include "base/strings/sys_string_conversions.h" |
| 26 | 26 |
| 27 namespace base { | 27 namespace base { |
| 28 namespace mac { | 28 namespace mac { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 // The current count of outstanding requests for full screen mode from browser | 32 // The current count of outstanding requests for full screen mode from browser |
| 33 // windows, plugins, etc. | 33 // windows, plugins, etc. |
| 34 int g_full_screen_requests[kNumFullScreenModes] = { 0 }; | 34 int g_full_screen_requests[kNumFullScreenModes] = { 0 }; |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 StringPiece(begin + comma_loc + 1, ident.end()), &minor_tmp)) | 666 StringPiece(begin + comma_loc + 1, ident.end()), &minor_tmp)) |
| 667 return false; | 667 return false; |
| 668 *type = ident.substr(0, number_loc); | 668 *type = ident.substr(0, number_loc); |
| 669 *major = major_tmp; | 669 *major = major_tmp; |
| 670 *minor = minor_tmp; | 670 *minor = minor_tmp; |
| 671 return true; | 671 return true; |
| 672 } | 672 } |
| 673 | 673 |
| 674 } // namespace mac | 674 } // namespace mac |
| 675 } // namespace base | 675 } // namespace base |
| OLD | NEW |