OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/common/platform_util.h" | 5 #include "chrome/common/platform_util.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/sys_string_conversions.h" | 11 #include "base/sys_string_conversions.h" |
12 #include "chrome/browser/cocoa/tab_window_controller.h" | 12 #include "chrome/browser/cocoa/tab_window_controller.h" |
13 #include "chrome/common/l10n_util.h" | 13 #include "chrome/common/l10n_util.h" |
14 #include "grit/chromium_strings.h" | 14 #include "grit/chromium_strings.h" |
| 15 #include "grit/generated_resources.h" |
15 | 16 |
16 namespace platform_util { | 17 namespace platform_util { |
17 | 18 |
18 void ShowItemInFolder(const FilePath& full_path) { | 19 void ShowItemInFolder(const FilePath& full_path) { |
19 NSString* path_string = base::SysUTF8ToNSString(full_path.value()); | 20 NSString* path_string = base::SysUTF8ToNSString(full_path.value()); |
20 [[NSWorkspace sharedWorkspace] selectFile:path_string | 21 [[NSWorkspace sharedWorkspace] selectFile:path_string |
21 inFileViewerRootedAtPath:nil]; | 22 inFileViewerRootedAtPath:nil]; |
22 } | 23 } |
23 | 24 |
24 gfx::NativeWindow GetTopLevel(gfx::NativeView view) { | 25 gfx::NativeWindow GetTopLevel(gfx::NativeView view) { |
(...skipping 13 matching lines...) Expand all Loading... |
38 | 39 |
39 return base::SysNSStringToUTF16(title); | 40 return base::SysNSStringToUTF16(title); |
40 } | 41 } |
41 | 42 |
42 bool IsWindowActive(gfx::NativeWindow window) { | 43 bool IsWindowActive(gfx::NativeWindow window) { |
43 NOTIMPLEMENTED(); | 44 NOTIMPLEMENTED(); |
44 return false; | 45 return false; |
45 } | 46 } |
46 | 47 |
47 } // namespace platform_util | 48 } // namespace platform_util |
OLD | NEW |