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/toolbar/app_menu_model.cc

Issue 1586663004: Componentize IDS_PRINT string so that it can be shared on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ids-close
Patch Set: Created 4 years, 11 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 (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/toolbar/app_menu_model.h" 5 #include "chrome/browser/ui/toolbar/app_menu_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "components/ui/zoom/zoom_controller.h" 54 #include "components/ui/zoom/zoom_controller.h"
55 #include "components/ui/zoom/zoom_event_manager.h" 55 #include "components/ui/zoom/zoom_event_manager.h"
56 #include "content/public/browser/host_zoom_map.h" 56 #include "content/public/browser/host_zoom_map.h"
57 #include "content/public/browser/navigation_entry.h" 57 #include "content/public/browser/navigation_entry.h"
58 #include "content/public/browser/notification_service.h" 58 #include "content/public/browser/notification_service.h"
59 #include "content/public/browser/notification_source.h" 59 #include "content/public/browser/notification_source.h"
60 #include "content/public/browser/notification_types.h" 60 #include "content/public/browser/notification_types.h"
61 #include "content/public/browser/user_metrics.h" 61 #include "content/public/browser/user_metrics.h"
62 #include "content/public/browser/web_contents.h" 62 #include "content/public/browser/web_contents.h"
63 #include "extensions/common/feature_switch.h" 63 #include "extensions/common/feature_switch.h"
64 #include "grit/components_strings.h"
64 #include "grit/theme_resources.h" 65 #include "grit/theme_resources.h"
65 #include "ui/base/l10n/l10n_util.h" 66 #include "ui/base/l10n/l10n_util.h"
66 #include "ui/base/layout.h" 67 #include "ui/base/layout.h"
67 #include "ui/base/models/button_menu_item_model.h" 68 #include "ui/base/models/button_menu_item_model.h"
68 #include "ui/base/resource/resource_bundle.h" 69 #include "ui/base/resource/resource_bundle.h"
69 #include "ui/gfx/image/image.h" 70 #include "ui/gfx/image/image.h"
70 #include "ui/gfx/image/image_skia.h" 71 #include "ui/gfx/image/image_skia.h"
71 72
72 #if defined(OS_CHROMEOS) 73 #if defined(OS_CHROMEOS)
73 #include "chromeos/chromeos_switches.h" 74 #include "chromeos/chromeos_switches.h"
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 ->GetZoomPercent(); 1016 ->GetZoomPercent();
1016 } 1017 }
1017 zoom_label_ = l10n_util::GetStringFUTF16( 1018 zoom_label_ = l10n_util::GetStringFUTF16(
1018 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent)); 1019 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent));
1019 } 1020 }
1020 1021
1021 void AppMenuModel::OnZoomLevelChanged( 1022 void AppMenuModel::OnZoomLevelChanged(
1022 const content::HostZoomMap::ZoomLevelChange& change) { 1023 const content::HostZoomMap::ZoomLevelChange& change) {
1023 UpdateZoomControls(); 1024 UpdateZoomControls();
1024 } 1025 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/views/frame/global_menu_bar_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698