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

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.mm

Issue 2330833002: Revert a change which broke the "Open/Copy Link" context menu items on the Mac sad tab. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h" 5 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h"
6 6
7 #import "base/mac/foundation_util.h" 7 #import "base/mac/foundation_util.h"
8 #include "components/grit/components_scaled_resources.h" 8 #include "components/grit/components_scaled_resources.h"
9 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw eaker.h" 9 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw eaker.h"
10 #import "ui/base/cocoa/controls/blue_label_button.h" 10 #import "ui/base/cocoa/controls/blue_label_button.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 // Called when someone clicks on the embedded link. 191 // Called when someone clicks on the embedded link.
192 - (BOOL)textView:(NSTextView*)textView 192 - (BOOL)textView:(NSTextView*)textView
193 clickedOnLink:(id)link 193 clickedOnLink:(id)link
194 atIndex:(NSUInteger)charIndex { 194 atIndex:(NSUInteger)charIndex {
195 sadTab_->PerformAction(chrome::SadTab::Action::HELP_LINK); 195 sadTab_->PerformAction(chrome::SadTab::Action::HELP_LINK);
196 return YES; 196 return YES;
197 } 197 }
198 198
199 - (NSRange)textView:(NSTextView*)textView
200 willChangeSelectionFromCharacterRange:(NSRange)oldSelectedCharRange
201 toCharacterRange:(NSRange)newSelectedCharRange {
202 return NSMakeRange(0, 0);
203 }
204
205 @end 199 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698