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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_cell_single_line.h

Issue 8598015: Do not allow multiline input when naming bookmarks/folders on Mac (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: pointer placement nit; move category into header file Created 9 years, 1 month 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/bookmarks/bookmark_cell_single_line.h
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_cell_single_line.h b/chrome/browser/ui/cocoa/bookmarks/bookmark_cell_single_line.h
new file mode 100644
index 0000000000000000000000000000000000000000..250db72cc5648f2b9fe3593a0b762315cb490cfc
--- /dev/null
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_cell_single_line.h
@@ -0,0 +1,18 @@
+// 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_BOOKMARKS_BOOKMARK_CELL_SINGLE_LINE_H_
+#define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_CELL_SINGLE_LINE_H_
+#pragma once
+
+#import <Cocoa/Cocoa.h>
+
+// Provides a category for 10.5 compilation of a selector which is only
+// available on 10.6+. This purely enables compilation when the selector
+// is present and does not implement the method itself.
+@interface NSCell(multilinebookmarks)
+- (void)setUsesSingleLineMode:(BOOL)flag;
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_CELL_SINGLE_LINE_H_

Powered by Google App Engine
This is Rietveld 408576698