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

Side by Side Diff: chrome/browser/ui/toolbar/wrench_menu_model.cc

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 9 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/wrench_menu_model.h" 5 #include "chrome/browser/ui/toolbar/wrench_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"
11 #include "base/i18n/number_formatting.h" 11 #include "base/i18n/number_formatting.h"
12 #include "base/string_number_conversions.h" 12 #include "base/string_number_conversions.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
15 #include "chrome/app/chrome_command_ids.h" 15 #include "chrome/app/chrome_command_ids.h"
16 #include "chrome/browser/background_page_tracker.h" 16 #include "chrome/browser/background_page_tracker.h"
17 #include "chrome/browser/browser_process.h" 17 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/defaults.h" 18 #include "chrome/browser/defaults.h"
19 #include "chrome/browser/prefs/pref_service.h" 19 #include "chrome/browser/prefs/pref_service.h"
20 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/browser/sync/profile_sync_service.h" 21 #include "chrome/browser/sync/profile_sync_service.h"
22 #include "chrome/browser/sync/sync_ui_util.h" 22 #include "chrome/browser/sync/sync_ui_util.h"
23 #include "chrome/browser/tabs/tab_strip_model.h" 23 #include "chrome/browser/tabs/tab_strip_model.h"
24 #include "chrome/browser/ui/browser.h" 24 #include "chrome/browser/ui/browser.h"
25 #include "chrome/browser/ui/toolbar/encoding_menu_controller.h" 25 #include "chrome/browser/ui/toolbar/encoding_menu_controller.h"
26 #include "chrome/browser/upgrade_detector.h" 26 #include "chrome/browser/upgrade_detector.h"
27 #include "chrome/common/chrome_switches.h" 27 #include "chrome/common/chrome_switches.h"
28 #include "chrome/common/notification_service.h"
29 #include "chrome/common/notification_source.h"
30 #include "chrome/common/notification_type.h"
31 #include "chrome/common/pref_names.h" 28 #include "chrome/common/pref_names.h"
32 #include "chrome/common/profiling.h" 29 #include "chrome/common/profiling.h"
33 #include "content/browser/tab_contents/tab_contents.h" 30 #include "content/browser/tab_contents/tab_contents.h"
31 #include "content/common/notification_service.h"
32 #include "content/common/notification_source.h"
33 #include "content/common/notification_type.h"
34 #include "grit/chromium_strings.h" 34 #include "grit/chromium_strings.h"
35 #include "grit/generated_resources.h" 35 #include "grit/generated_resources.h"
36 #include "grit/theme_resources.h" 36 #include "grit/theme_resources.h"
37 #include "ui/base/l10n/l10n_util.h" 37 #include "ui/base/l10n/l10n_util.h"
38 #include "ui/base/models/button_menu_item_model.h" 38 #include "ui/base/models/button_menu_item_model.h"
39 #include "ui/base/resource/resource_bundle.h" 39 #include "ui/base/resource/resource_bundle.h"
40 40
41 #if defined(OS_LINUX) 41 #if defined(OS_LINUX)
42 #include <gtk/gtk.h> 42 #include <gtk/gtk.h>
43 #include "chrome/browser/ui/gtk/gtk_util.h" 43 #include "chrome/browser/ui/gtk/gtk_util.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 &enable_increment, &enable_decrement); 485 &enable_increment, &enable_decrement);
486 } 486 }
487 zoom_label_ = l10n_util::GetStringFUTF16( 487 zoom_label_ = l10n_util::GetStringFUTF16(
488 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent)); 488 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent));
489 } 489 }
490 490
491 string16 WrenchMenuModel::GetSyncMenuLabel() const { 491 string16 WrenchMenuModel::GetSyncMenuLabel() const {
492 return sync_ui_util::GetSyncMenuLabel( 492 return sync_ui_util::GetSyncMenuLabel(
493 browser_->profile()->GetOriginalProfile()->GetProfileSyncService()); 493 browser_->profile()->GetOriginalProfile()->GetProfileSyncService());
494 } 494 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model.h ('k') | chrome/browser/ui/touch/frame/touch_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698