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

Side by Side Diff: chrome/browser/cocoa/find_bar_view.mm

Issue 2973004: [Mac]Implement ViewID support. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Turns out that, it's not a good solution. Created 10 years, 5 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/find_bar_text_field.mm ('k') | chrome/browser/cocoa/location_bar/autocomplete_text_field.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698