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

Side by Side Diff: chrome/browser/ui/views/translate/translate_icon_view.cc

Issue 2289543004: Remove more unused grit includes in chrome/ (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
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 #include "chrome/browser/ui/views/translate/translate_icon_view.h" 5 #include "chrome/browser/ui/views/translate/translate_icon_view.h"
6 6
7 #include "base/metrics/histogram_macros.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/ui/browser_commands.h" 10 #include "chrome/browser/ui/browser_commands.h"
11 #include "chrome/browser/ui/translate/translate_bubble_view_state_transition.h" 11 #include "chrome/browser/ui/translate/translate_bubble_view_state_transition.h"
12 #include "chrome/browser/ui/view_ids.h" 12 #include "chrome/browser/ui/view_ids.h"
13 #include "chrome/browser/ui/views/translate/translate_bubble_view.h" 13 #include "chrome/browser/ui/views/translate/translate_bubble_view.h"
14 #include "chrome/grit/generated_resources.h" 14 #include "chrome/grit/generated_resources.h"
15 #include "chrome/grit/theme_resources.h"
16 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
17 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
18 #include "ui/gfx/vector_icons_public.h" 17 #include "ui/gfx/vector_icons_public.h"
19 18
20 TranslateIconView::TranslateIconView(CommandUpdater* command_updater) 19 TranslateIconView::TranslateIconView(CommandUpdater* command_updater)
21 : BubbleIconView(command_updater, IDC_TRANSLATE_PAGE) { 20 : BubbleIconView(command_updater, IDC_TRANSLATE_PAGE) {
22 set_id(VIEW_ID_TRANSLATE_BUTTON); 21 set_id(VIEW_ID_TRANSLATE_BUTTON);
23 SetTooltipText(l10n_util::GetStringUTF16(IDS_TOOLTIP_TRANSLATE)); 22 SetTooltipText(l10n_util::GetStringUTF16(IDS_TOOLTIP_TRANSLATE));
24 } 23 }
25 24
26 TranslateIconView::~TranslateIconView() {} 25 TranslateIconView::~TranslateIconView() {}
27 26
28 void TranslateIconView::OnExecuting( 27 void TranslateIconView::OnExecuting(
29 BubbleIconView::ExecuteSource execute_source) {} 28 BubbleIconView::ExecuteSource execute_source) {}
30 29
31 void TranslateIconView::OnPressed(bool activated) { 30 void TranslateIconView::OnPressed(bool activated) {
32 translate::ReportUiAction((activated 31 translate::ReportUiAction((activated
33 ? translate::PAGE_ACTION_ICON_ACTIVATED 32 ? translate::PAGE_ACTION_ICON_ACTIVATED
34 : translate::PAGE_ACTION_ICON_DEACTIVATED)); 33 : translate::PAGE_ACTION_ICON_DEACTIVATED));
35 } 34 }
36 35
37 views::BubbleDialogDelegateView* TranslateIconView::GetBubble() const { 36 views::BubbleDialogDelegateView* TranslateIconView::GetBubble() const {
38 return TranslateBubbleView::GetCurrentBubble(); 37 return TranslateBubbleView::GetCurrentBubble();
39 } 38 }
40 39
41 gfx::VectorIconId TranslateIconView::GetVectorIcon() const { 40 gfx::VectorIconId TranslateIconView::GetVectorIcon() const {
42 return gfx::VectorIconId::TRANSLATE; 41 return gfx::VectorIconId::TRANSLATE;
43 } 42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698