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

Unified Diff: chrome/browser/ui/cocoa/find_pasteboard.h

Issue 7149013: Remove most of the remaining test dependencies (other than chrome/test). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/find_pasteboard.h
===================================================================
--- chrome/browser/ui/cocoa/find_pasteboard.h (revision 88946)
+++ chrome/browser/ui/cocoa/find_pasteboard.h (working copy)
@@ -1,58 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_COCOA_FIND_PASTEBOARD_H_
-#define CHROME_BROWSER_UI_COCOA_FIND_PASTEBOARD_H_
-#pragma once
-
-#include "base/string16.h"
-
-#ifdef __OBJC__
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/memory/scoped_nsobject.h"
-
-extern NSString* kFindPasteboardChangedNotification;
-
-// Manages the find pasteboard. Use this to copy text to the find pasteboard,
-// to get the text currently on the find pasteboard, and to receive
-// notifications when the text on the find pasteboard has changed. You should
-// always use this class instead of accessing
-// [NSPasteboard pasteboardWithName:NSFindPboard] directly.
-//
-// This is not thread-safe and must be used on the main thread.
-//
-// This is supposed to be a singleton.
-@interface FindPasteboard : NSObject {
- @private
- scoped_nsobject<NSString> findText_;
-}
-
-// Returns the singleton instance of this class.
-+ (FindPasteboard*)sharedInstance;
-
-// Returns the current find text. This is never nil; if there is no text on the
-// find pasteboard, this returns an empty string.
-- (NSString*)findText;
-
-// Sets the current find text to |newText| and sends a
-// |kFindPasteboardChangedNotification| to the default notification center if
-// it the new text different from the current text. |newText| must not be nil.
-- (void)setFindText:(NSString*)newText;
-@end
-
-@interface FindPasteboard (TestingAPI)
-- (void)loadTextFromPasteboard:(NSNotification*)notification;
-
-// This methods is meant to be overridden in tests.
-- (NSPasteboard*)findPboard;
-@end
-
-#endif // __OBJC__
-
-// Also provide a c++ interface
-string16 GetFindPboardText();
-
-#endif // CHROME_BROWSER_UI_COCOA_FIND_PASTEBOARD_H_
« no previous file with comments | « chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller_unittest.mm ('k') | chrome/browser/ui/cocoa/find_pasteboard.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698