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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller.mm

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller.h" 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller.h"
6 6
7 #include "base/strings/sys_string_conversions.h" 7 #include "base/strings/sys_string_conversions.h"
8 #include "chrome/browser/signin/signin_promo.h" 8 #include "chrome/browser/signin/signin_promo.h"
9 #include "chrome/browser/ui/chrome_pages.h" 9 #include "chrome/browser/ui/chrome_pages.h"
10 #include "chrome/browser/ui/chrome_style.h" 10 #include "chrome/browser/ui/chrome_style.h"
11 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" 11 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h"
12 #include "grit/generated_resources.h" 12 #include "chrome/grit/generated_resources.h"
13 #include "skia/ext/skia_utils_mac.h" 13 #include "skia/ext/skia_utils_mac.h"
14 #include "third_party/skia/include/core/SkColor.h" 14 #include "third_party/skia/include/core/SkColor.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/base/l10n/l10n_util_mac.h" 16 #include "ui/base/l10n/l10n_util_mac.h"
17 17
18 namespace { 18 namespace {
19 19
20 // Remove underlining from the specified range of characters in a text view. 20 // Remove underlining from the specified range of characters in a text view.
21 void RemoveUnderlining(NSTextView* textView, int offset, int length) { 21 void RemoveUnderlining(NSTextView* textView, int offset, int length) {
22 [textView setLinkTextAttributes:nil]; 22 [textView setLinkTextAttributes:nil];
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 108
109 - (BOOL)textView:(NSTextView *)textView 109 - (BOOL)textView:(NSTextView *)textView
110 clickedOnLink:(id)link 110 clickedOnLink:(id)link
111 atIndex:(NSUInteger)charIndex { 111 atIndex:(NSUInteger)charIndex {
112 chrome::ShowBrowserSignin(browser_, signin::SOURCE_BOOKMARK_BUBBLE); 112 chrome::ShowBrowserSignin(browser_, signin::SOURCE_BOOKMARK_BUBBLE);
113 return YES; 113 return YES;
114 } 114 }
115 115
116 @end 116 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698