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

Unified Diff: chrome/browser/cocoa/side_tab_strip_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
« no previous file with comments | « chrome/browser/cocoa/reload_button_unittest.mm ('k') | chrome/browser/cocoa/tab_contents_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/side_tab_strip_view.mm
diff --git a/chrome/browser/cocoa/side_tab_strip_view.mm b/chrome/browser/cocoa/side_tab_strip_view.mm
index b7bebe03dacf62c349a10967e5b5aed0683332d1..5c7de14ac29188f546143315b362f7d967d12337 100644
--- a/chrome/browser/cocoa/side_tab_strip_view.mm
+++ b/chrome/browser/cocoa/side_tab_strip_view.mm
@@ -5,6 +5,7 @@
#import "chrome/browser/cocoa/side_tab_strip_view.h"
#include "base/scoped_nsobject.h"
+#import "chrome/browser/cocoa/view_id_util.h"
#import "third_party/GTM/AppKit/GTMNSColor+Luminance.h"
@implementation SideTabStripView
@@ -40,4 +41,9 @@
[super drawRect:rect];
}
+// Tag is used solely for ViewID. Override to prevent changing of it.
+- (NSInteger)tag {
+ return view_id_util::ViewIDToTag(VIEW_ID_TAB_STRIP);
+}
+
@end
« no previous file with comments | « chrome/browser/cocoa/reload_button_unittest.mm ('k') | chrome/browser/cocoa/tab_contents_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698