| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" |
| 9 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| 10 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 13 #include "chrome/app/chrome_dll_resource.h" | 14 #include "chrome/app/chrome_dll_resource.h" |
| 14 #include "chrome/browser/bookmarks/bookmark_model.h" | 15 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 15 #include "chrome/browser/browser.h" | 16 #include "chrome/browser/browser.h" |
| 16 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/character_encoding.h" | 18 #include "chrome/browser/character_encoding.h" |
| 18 #include "chrome/browser/drag_utils.h" | 19 #include "chrome/browser/drag_utils.h" |
| 19 #include "chrome/browser/metrics/user_metrics.h" | 20 #include "chrome/browser/metrics/user_metrics.h" |
| 20 #include "chrome/browser/profile.h" | 21 #include "chrome/browser/profile.h" |
| 21 #include "chrome/browser/tab_contents/navigation_controller.h" | 22 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 22 #include "chrome/browser/tab_contents/navigation_entry.h" | 23 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 23 #include "chrome/browser/user_data_manager.h" | 24 #include "chrome/browser/user_data_manager.h" |
| 24 #include "chrome/browser/views/bookmark_menu_button.h" | 25 #include "chrome/browser/views/bookmark_menu_button.h" |
| 25 #include "chrome/browser/views/dom_view.h" | 26 #include "chrome/browser/views/dom_view.h" |
| 26 #include "chrome/browser/views/event_utils.h" | 27 #include "chrome/browser/views/event_utils.h" |
| 27 #include "chrome/browser/views/go_button.h" | 28 #include "chrome/browser/views/go_button.h" |
| 28 #include "chrome/browser/views/location_bar_view.h" | 29 #include "chrome/browser/views/location_bar_view.h" |
| 29 #include "chrome/browser/views/theme_helpers.h" | 30 #include "chrome/browser/views/theme_helpers.h" |
| 30 #include "chrome/browser/views/toolbar_star_toggle.h" | 31 #include "chrome/browser/views/toolbar_star_toggle.h" |
| 31 #include "chrome/browser/view_ids.h" | 32 #include "chrome/browser/view_ids.h" |
| 32 #include "chrome/common/chrome_constants.h" | 33 #include "chrome/common/chrome_constants.h" |
| 33 #include "chrome/common/chrome_switches.h" | 34 #include "chrome/common/chrome_switches.h" |
| 34 #include "chrome/common/drag_drop_types.h" | 35 #include "chrome/common/drag_drop_types.h" |
| 35 #include "chrome/common/gfx/chrome_canvas.h" | 36 #include "chrome/common/gfx/chrome_canvas.h" |
| 36 #include "chrome/common/l10n_util.h" | |
| 37 #include "chrome/common/notification_service.h" | 37 #include "chrome/common/notification_service.h" |
| 38 #include "chrome/common/os_exchange_data.h" | 38 #include "chrome/common/os_exchange_data.h" |
| 39 #include "chrome/common/pref_names.h" | 39 #include "chrome/common/pref_names.h" |
| 40 #include "chrome/common/pref_service.h" | 40 #include "chrome/common/pref_service.h" |
| 41 #include "chrome/common/win_util.h" | 41 #include "chrome/common/win_util.h" |
| 42 #ifdef CHROME_PERSONALIZATION | 42 #ifdef CHROME_PERSONALIZATION |
| 43 #include "chrome/personalization/personalization.h" | 43 #include "chrome/personalization/personalization.h" |
| 44 #endif | 44 #endif |
| 45 #include "chrome/views/background.h" | 45 #include "chrome/views/background.h" |
| 46 #include "chrome/views/controls/button/button_dropdown.h" | 46 #include "chrome/views/controls/button/button_dropdown.h" |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 case IDC_COPY: | 916 case IDC_COPY: |
| 917 *accel = views::Accelerator(L'C', false, true, false); | 917 *accel = views::Accelerator(L'C', false, true, false); |
| 918 return true; | 918 return true; |
| 919 case IDC_PASTE: | 919 case IDC_PASTE: |
| 920 *accel = views::Accelerator(L'V', false, true, false); | 920 *accel = views::Accelerator(L'V', false, true, false); |
| 921 return true; | 921 return true; |
| 922 } | 922 } |
| 923 // Else, we retrieve the accelerator information from the frame. | 923 // Else, we retrieve the accelerator information from the frame. |
| 924 return GetWidget()->GetAccelerator(id, accel); | 924 return GetWidget()->GetAccelerator(id, accel); |
| 925 } | 925 } |
| OLD | NEW |