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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/translate_decoration.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/location_bar/translate_decoration.h" 5 #import "chrome/browser/ui/cocoa/location_bar/translate_decoration.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/command_updater.h" 8 #include "chrome/browser/command_updater.h"
9 #import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h" 9 #import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h"
10 #include "grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
11 #include "grit/theme_resources.h" 11 #include "grit/theme_resources.h"
12 #include "ui/base/l10n/l10n_util_mac.h" 12 #include "ui/base/l10n/l10n_util_mac.h"
13 13
14 TranslateDecoration::TranslateDecoration(CommandUpdater* command_updater) 14 TranslateDecoration::TranslateDecoration(CommandUpdater* command_updater)
15 : command_updater_(command_updater) { 15 : command_updater_(command_updater) {
16 SetLit(false); 16 SetLit(false);
17 } 17 }
18 18
19 TranslateDecoration::~TranslateDecoration() {} 19 TranslateDecoration::~TranslateDecoration() {}
20 20
(...skipping 12 matching lines...) Expand all
33 } 33 }
34 34
35 bool TranslateDecoration::OnMousePressed(NSRect frame, NSPoint location) { 35 bool TranslateDecoration::OnMousePressed(NSRect frame, NSPoint location) {
36 command_updater_->ExecuteCommand(IDC_TRANSLATE_PAGE); 36 command_updater_->ExecuteCommand(IDC_TRANSLATE_PAGE);
37 return true; 37 return true;
38 } 38 }
39 39
40 NSString* TranslateDecoration::GetToolTip() { 40 NSString* TranslateDecoration::GetToolTip() {
41 return l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_TRANSLATE); 41 return l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_TRANSLATE);
42 } 42 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/star_decoration.mm ('k') | chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698