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

Unified Diff: chrome/browser/cocoa/find_bar_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
Index: chrome/browser/cocoa/find_bar_text_field.mm
diff --git a/chrome/browser/cocoa/find_bar_text_field.mm b/chrome/browser/cocoa/find_bar_text_field.mm
index 7873c02dcbf2e60ffcff5c864c3d2da96e0a81b4..2725afc54da3caf24aa7930e9ba8971be171bd85 100644
--- a/chrome/browser/cocoa/find_bar_text_field.mm
+++ b/chrome/browser/cocoa/find_bar_text_field.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// 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.
@@ -6,6 +6,7 @@
#include "base/logging.h"
#import "chrome/browser/cocoa/find_bar_text_field_cell.h"
+#import "chrome/browser/cocoa/view_id_util.h"
@implementation FindBarTextField
@@ -22,4 +23,9 @@
return static_cast<FindBarTextFieldCell*>([self cell]);
}
+// Tag is used solely for ViewID. Override to prevent changing of it.
+- (NSInteger)tag {
+ return view_id_util::ViewIDToTag(VIEW_ID_FIND_IN_PAGE_TEXT_FIELD);
+}
+
@end
« no previous file with comments | « chrome/browser/cocoa/extensions/browser_actions_container_view.mm ('k') | chrome/browser/cocoa/find_bar_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698