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

Side by Side Diff: ui/base/clipboard/find_pasteboard.mm

Issue 9619025: Move FindPasteboard to ui/base/cocoa since it's used by two modules (content+chrome). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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 "content/browser/find_pasteboard.h" 5 #import "ui/base/clipboard/find_pasteboard.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 9
10 NSString* kFindPasteboardChangedNotification = 10 NSString* kFindPasteboardChangedNotification =
11 @"kFindPasteboardChangedNotification_Chrome"; 11 @"kFindPasteboardChangedNotification_Chrome";
12 12
13 @implementation FindPasteboard 13 @implementation FindPasteboard
14 14
15 + (FindPasteboard*)sharedInstance { 15 + (FindPasteboard*)sharedInstance {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 string16 GetFindPboardText() {
81 return base::SysNSStringToUTF16([[FindPasteboard sharedInstance] findText]); 81 return base::SysNSStringToUTF16([[FindPasteboard sharedInstance] findText]);
82 } 82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698