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

Unified Diff: chrome/browser/cocoa/location_bar/autocomplete_text_field.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cocoa/find_bar_view.mm ('k') | chrome/browser/cocoa/menu_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/location_bar/autocomplete_text_field.mm
diff --git a/chrome/browser/cocoa/location_bar/autocomplete_text_field.mm b/chrome/browser/cocoa/location_bar/autocomplete_text_field.mm
index 3a1dc322a99c96e613abd6493fbd0718718b728e..8581c1f4b0fda19c5aff6b4fe1e128e9459b9634 100644
--- a/chrome/browser/cocoa/location_bar/autocomplete_text_field.mm
+++ b/chrome/browser/cocoa/location_bar/autocomplete_text_field.mm
@@ -10,6 +10,7 @@
#import "chrome/browser/cocoa/location_bar/autocomplete_text_field_editor.h"
#import "chrome/browser/cocoa/toolbar_controller.h"
#import "chrome/browser/cocoa/url_drop_target.h"
+#import "chrome/browser/cocoa/view_id_util.h"
@implementation AutocompleteTextField
@@ -405,4 +406,8 @@
actionMenuForEvent:event inRect:[self bounds] ofView:self];
}
+// Tag is used solely for ViewID. Override to prevent changing of it.
+- (NSInteger)tag {
+ return view_id_util::ViewIDToTag(VIEW_ID_LOCATION_BAR);
+}
@end
« no previous file with comments | « chrome/browser/cocoa/find_bar_view.mm ('k') | chrome/browser/cocoa/menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698