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

Unified Diff: chrome/browser/ui/cocoa/find_bar_text_field.mm

Issue 6366001: [Mac] Move the associated find bar files into a subdir of c/b/ui/cocoa/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome/browser/ui/cocoa/find_bar_text_field.h ('k') | chrome/browser/ui/cocoa/find_bar_text_field_cell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/find_bar_text_field.mm
===================================================================
--- chrome/browser/ui/cocoa/find_bar_text_field.mm (revision 71508)
+++ chrome/browser/ui/cocoa/find_bar_text_field.mm (working copy)
@@ -1,40 +0,0 @@
-// Copyright (c) 2010 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 "chrome/browser/ui/cocoa/find_bar_text_field.h"
-
-#include "base/logging.h"
-#import "chrome/browser/ui/cocoa/find_bar_text_field_cell.h"
-#import "chrome/browser/ui/cocoa/view_id_util.h"
-
-@implementation FindBarTextField
-
-+ (Class)cellClass {
- return [FindBarTextFieldCell class];
-}
-
-- (void)awakeFromNib {
- DCHECK([[self cell] isKindOfClass:[FindBarTextFieldCell class]]);
-
- [self registerForDraggedTypes:
- [NSArray arrayWithObjects:NSStringPboardType, nil]];
-}
-
-- (FindBarTextFieldCell*)findBarTextFieldCell {
- DCHECK([[self cell] isKindOfClass:[FindBarTextFieldCell class]]);
- return static_cast<FindBarTextFieldCell*>([self cell]);
-}
-
-- (ViewID)viewID {
- return VIEW_ID_FIND_IN_PAGE_TEXT_FIELD;
-}
-
-- (NSDragOperation)draggingEntered:(id<NSDraggingInfo>)info {
- // When a drag enters the text field, focus the field. This will swap in the
- // field editor, which will then handle the drag itself.
- [[self window] makeFirstResponder:self];
- return NSDragOperationNone;
-}
-
-@end
« no previous file with comments | « chrome/browser/ui/cocoa/find_bar_text_field.h ('k') | chrome/browser/ui/cocoa/find_bar_text_field_cell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698