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

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

Issue 18355002: Move HyperlinkButtonCell to /ui/base/cocoa/controls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: helpful comment Created 7 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/hyperlink_button_cell.h
diff --git a/chrome/browser/ui/cocoa/hyperlink_button_cell.h b/chrome/browser/ui/cocoa/hyperlink_button_cell.h
deleted file mode 100644
index 1cdc2635884160ce551bf1aaddbfa8bdd6ee8a2a..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/hyperlink_button_cell.h
+++ /dev/null
@@ -1,37 +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.
-
-#import <Cocoa/Cocoa.h>
-#include "base/mac/scoped_nsobject.h"
-
-// A HyperlinkButtonCell is used to create an NSButton that looks and acts
-// like a hyperlink. The default styling is to look like blue, underlined text
-// and to have the pointingHand cursor on mouse over.
-//
-// To use in Interface Builder:
-// 1. Drag out an NSButton.
-// 2. Double click on the button so you have the cell component selected.
-// 3. In the Identity panel of the inspector, set the custom class to this.
-// 4. In the Attributes panel, change the Bezel to Square.
-// 5. In the Size panel, set the Height to 16.
-@interface HyperlinkButtonCell : NSButtonCell {
- base::scoped_nsobject<NSColor> textColor_;
- BOOL shouldUnderline_;
- BOOL underlineOnHover_;
- BOOL mouseIsInside_;
-}
-@property(nonatomic, retain) NSColor* textColor;
-@property(nonatomic, assign) BOOL underlineOnHover;
-@property(nonatomic, assign) BOOL shouldUnderline;
-
-+ (NSColor*)defaultTextColor;
-
-// Helper function to create a button with HyperLinkButtonCell as its cell.
-+ (NSButton*)buttonWithString:(NSString*)string;
-
-@end
-
-@interface HyperlinkButtonCell (ExposedForTesting)
-- (NSDictionary*)linkAttributes;
-@end

Powered by Google App Engine
This is Rietveld 408576698