| 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 #import "ui/base/cocoa/find_pasteboard.h" | 5 #import "ui/base/cocoa/find_pasteboard.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
| 9 | 9 |
| 10 NSString* kFindPasteboardChangedNotification = | 10 NSString* kFindPasteboardChangedNotification = |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 owner:nil]; | 70 owner:nil]; |
| 71 [findPboard setString:findText_.get() forType:NSStringPboardType]; | 71 [findPboard setString:findText_.get() forType:NSStringPboardType]; |
| 72 [[NSNotificationCenter defaultCenter] | 72 [[NSNotificationCenter defaultCenter] |
| 73 postNotificationName:kFindPasteboardChangedNotification | 73 postNotificationName:kFindPasteboardChangedNotification |
| 74 object:self]; | 74 object:self]; |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 | 77 |
| 78 @end | 78 @end |
| 79 | 79 |
| 80 string16 GetFindPboardText() { | 80 base::string16 GetFindPboardText() { |
| 81 return base::SysNSStringToUTF16([[FindPasteboard sharedInstance] findText]); | 81 return base::SysNSStringToUTF16([[FindPasteboard sharedInstance] findText]); |
| 82 } | 82 } |
| OLD | NEW |