OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/toolbar_view.h" | 5 #include "chrome/browser/views/toolbar_view.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/browser/accessibility/browser_accessibility_state.h" | 10 #include "chrome/browser/accessibility/browser_accessibility_state.h" |
11 #include "chrome/browser/browser.h" | |
12 #include "chrome/browser/browser_window.h" | 11 #include "chrome/browser/browser_window.h" |
13 #include "chrome/browser/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
14 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
15 #include "chrome/browser/themes/browser_theme_provider.h" | 14 #include "chrome/browser/themes/browser_theme_provider.h" |
| 15 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/upgrade_detector.h" | 16 #include "chrome/browser/upgrade_detector.h" |
17 #include "chrome/browser/view_ids.h" | 17 #include "chrome/browser/view_ids.h" |
18 #include "chrome/browser/views/browser_actions_container.h" | 18 #include "chrome/browser/views/browser_actions_container.h" |
19 #include "chrome/browser/views/event_utils.h" | 19 #include "chrome/browser/views/event_utils.h" |
20 #include "chrome/browser/views/frame/browser_view.h" | 20 #include "chrome/browser/views/frame/browser_view.h" |
21 #include "chrome/browser/wrench_menu_model.h" | 21 #include "chrome/browser/wrench_menu_model.h" |
22 #include "chrome/common/notification_service.h" | 22 #include "chrome/common/notification_service.h" |
23 #include "chrome/common/pref_names.h" | 23 #include "chrome/common/pref_names.h" |
24 #include "gfx/canvas.h" | 24 #include "gfx/canvas.h" |
25 #include "gfx/canvas_skia.h" | 25 #include "gfx/canvas_skia.h" |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 value); | 732 value); |
733 } | 733 } |
734 } | 734 } |
735 | 735 |
736 static const int kBadgeLeftSpacing = 8; | 736 static const int kBadgeLeftSpacing = 8; |
737 static const int kBadgeTopSpacing = 18; | 737 static const int kBadgeTopSpacing = 18; |
738 canvas->DrawBitmapInt(badge, kBadgeLeftSpacing, kBadgeTopSpacing); | 738 canvas->DrawBitmapInt(badge, kBadgeLeftSpacing, kBadgeTopSpacing); |
739 | 739 |
740 return canvas->ExtractBitmap(); | 740 return canvas->ExtractBitmap(); |
741 } | 741 } |
OLD | NEW |