| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |