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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/find_bar_view.mm
diff --git a/chrome/browser/cocoa/find_bar_view.mm b/chrome/browser/cocoa/find_bar_view.mm
index deb4d585eae761acccc5de9e40d15ed692d44d8d..14529f6b11f166952046ecbdfeb6961b05a15de7 100644
--- a/chrome/browser/cocoa/find_bar_view.mm
+++ b/chrome/browser/cocoa/find_bar_view.mm
@@ -1,10 +1,11 @@
-// 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.
#import "chrome/browser/cocoa/find_bar_view.h"
#import "chrome/browser/cocoa/themed_window.h"
+#import "chrome/browser/cocoa/view_id_util.h"
namespace {
CGFloat kCurveSize = 8;
@@ -111,4 +112,10 @@ CGFloat kCurveSize = 8;
- (void)otherMouseDragged:(NSEvent *)theEvent {
}
+
+// Tag is used solely for ViewID. Override to prevent changing of it.
+- (NSInteger)tag {
+ return view_id_util::ViewIDToTag(VIEW_ID_FIND_IN_PAGE);
+}
+
@end
« 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