OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/cocoa/find_bar_view.h" | 5 #import "chrome/browser/cocoa/find_bar_view.h" |
6 | 6 |
7 #import "chrome/browser/cocoa/themed_window.h" | 7 #import "chrome/browser/cocoa/themed_window.h" |
| 8 #import "chrome/browser/cocoa/view_id_util.h" |
8 | 9 |
9 namespace { | 10 namespace { |
10 CGFloat kCurveSize = 8; | 11 CGFloat kCurveSize = 8; |
11 } // end namespace | 12 } // end namespace |
12 | 13 |
13 @implementation FindBarView | 14 @implementation FindBarView |
14 | 15 |
15 - (void)drawRect:(NSRect)rect { | 16 - (void)drawRect:(NSRect)rect { |
16 // TODO(rohitrao): Make this prettier. | 17 // TODO(rohitrao): Make this prettier. |
17 rect = NSInsetRect([self bounds], 0.5, 0.5); | 18 rect = NSInsetRect([self bounds], 0.5, 0.5); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 } | 105 } |
105 | 106 |
106 - (void)mouseDragged:(NSEvent *)theEvent { | 107 - (void)mouseDragged:(NSEvent *)theEvent { |
107 } | 108 } |
108 | 109 |
109 - (void)rightMouseDragged:(NSEvent *)theEvent { | 110 - (void)rightMouseDragged:(NSEvent *)theEvent { |
110 } | 111 } |
111 | 112 |
112 - (void)otherMouseDragged:(NSEvent *)theEvent { | 113 - (void)otherMouseDragged:(NSEvent *)theEvent { |
113 } | 114 } |
| 115 |
| 116 // Tag is used solely for ViewID. Override to prevent changing of it. |
| 117 - (NSInteger)tag { |
| 118 return view_id_util::ViewIDToTag(VIEW_ID_FIND_IN_PAGE); |
| 119 } |
| 120 |
114 @end | 121 @end |
OLD | NEW |