| OLD | NEW |
| 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/app/vector_icons/vector_icons.h" | 8 #include "chrome/app/vector_icons/vector_icons.h" |
| 9 #include "chrome/browser/command_updater.h" | 9 #include "chrome/browser/command_updater.h" |
| 10 #import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h" | 10 #import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h" |
| 11 #include "chrome/grit/generated_resources.h" | 11 #include "chrome/grit/generated_resources.h" |
| 12 #include "chrome/grit/theme_resources.h" | |
| 13 #include "ui/base/l10n/l10n_util_mac.h" | 12 #include "ui/base/l10n/l10n_util_mac.h" |
| 14 #include "ui/base/material_design/material_design_controller.h" | 13 #include "ui/base/material_design/material_design_controller.h" |
| 15 | 14 |
| 16 TranslateDecoration::TranslateDecoration(CommandUpdater* command_updater) | 15 TranslateDecoration::TranslateDecoration(CommandUpdater* command_updater) |
| 17 : command_updater_(command_updater) { | 16 : command_updater_(command_updater) { |
| 18 SetLit(false, false); | 17 SetLit(false, false); |
| 19 } | 18 } |
| 20 | 19 |
| 21 TranslateDecoration::~TranslateDecoration() {} | 20 TranslateDecoration::~TranslateDecoration() {} |
| 22 | 21 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 38 return true; | 37 return true; |
| 39 } | 38 } |
| 40 | 39 |
| 41 NSString* TranslateDecoration::GetToolTip() { | 40 NSString* TranslateDecoration::GetToolTip() { |
| 42 return l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_TRANSLATE); | 41 return l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_TRANSLATE); |
| 43 } | 42 } |
| 44 | 43 |
| 45 const gfx::VectorIcon* TranslateDecoration::GetMaterialVectorIcon() const { | 44 const gfx::VectorIcon* TranslateDecoration::GetMaterialVectorIcon() const { |
| 46 return &kTranslateIcon; | 45 return &kTranslateIcon; |
| 47 } | 46 } |
| OLD | NEW |