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

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

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
« no previous file with comments | « content/content_browser.gypi ('k') | ui/base/clipboard/find_pasteboard.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CONTENT_BROWSER_FIND_PASTEBOARD_H_ 5 #ifndef UI_BASE_CLIPBOARD_FIND_PASTEBOARD_H_
6 #define CONTENT_BROWSER_FIND_PASTEBOARD_H_ 6 #define UI_BASE_CLIPBOARD_FIND_PASTEBOARD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 10
11 #ifdef __OBJC__ 11 #ifdef __OBJC__
12 12
13 #import <Cocoa/Cocoa.h> 13 #import <Cocoa/Cocoa.h>
14 14
15 #include "base/memory/scoped_nsobject.h" 15 #include "base/memory/scoped_nsobject.h"
16 #include "content/common/content_export.h" 16 #include "ui/base/ui_export.h"
17 17
18 CONTENT_EXPORT extern NSString* kFindPasteboardChangedNotification; 18 UI_EXPORT extern NSString* kFindPasteboardChangedNotification;
19 19
20 // Manages the find pasteboard. Use this to copy text to the find pasteboard, 20 // Manages the find pasteboard. Use this to copy text to the find pasteboard,
21 // to get the text currently on the find pasteboard, and to receive 21 // to get the text currently on the find pasteboard, and to receive
22 // notifications when the text on the find pasteboard has changed. You should 22 // notifications when the text on the find pasteboard has changed. You should
23 // always use this class instead of accessing 23 // always use this class instead of accessing
24 // [NSPasteboard pasteboardWithName:NSFindPboard] directly. 24 // [NSPasteboard pasteboardWithName:NSFindPboard] directly.
25 // 25 //
26 // This is not thread-safe and must be used on the main thread. 26 // This is not thread-safe and must be used on the main thread.
27 // 27 //
28 // This is supposed to be a singleton. 28 // This is supposed to be a singleton.
(...skipping 17 matching lines...) Expand all
46 46
47 @interface FindPasteboard (TestingAPI) 47 @interface FindPasteboard (TestingAPI)
48 - (void)loadTextFromPasteboard:(NSNotification*)notification; 48 - (void)loadTextFromPasteboard:(NSNotification*)notification;
49 49
50 // This methods is meant to be overridden in tests. 50 // This methods is meant to be overridden in tests.
51 - (NSPasteboard*)findPboard; 51 - (NSPasteboard*)findPboard;
52 @end 52 @end
53 53
54 #endif // __OBJC__ 54 #endif // __OBJC__
55 55
56 // Also provide a c++ interface 56 // Also provide a c++ interface
Avi (use Gerrit) 2012/03/07 21:47:27 Capital C++, period at end.
57 CONTENT_EXPORT string16 GetFindPboardText(); 57 UI_EXPORT string16 GetFindPboardText();
58 58
59 #endif // CONTENT_BROWSER_FIND_PASTEBOARD_H_ 59 #endif // UI_BASE_CLIPBOARD_FIND_PASTEBOARD_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | ui/base/clipboard/find_pasteboard.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698