OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #import "chrome/browser/app_controller_mac.h" | 5 #import "chrome/browser/app_controller_mac.h" |
6 | 6 |
7 #include "app/l10n_util_mac.h" | 7 #include "app/l10n_util_mac.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/mac_util.h" | 9 #include "base/mac_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "chrome/browser/sessions/tab_restore_service.h" | 37 #include "chrome/browser/sessions/tab_restore_service.h" |
38 #include "chrome/browser/sync/profile_sync_service.h" | 38 #include "chrome/browser/sync/profile_sync_service.h" |
39 #include "chrome/browser/sync/sync_ui_util.h" | 39 #include "chrome/browser/sync/sync_ui_util.h" |
40 #include "chrome/browser/sync/sync_ui_util_mac.h" | 40 #include "chrome/browser/sync/sync_ui_util_mac.h" |
41 #include "chrome/browser/tab_contents/tab_contents.h" | 41 #include "chrome/browser/tab_contents/tab_contents.h" |
42 #include "chrome/common/chrome_switches.h" | 42 #include "chrome/common/chrome_switches.h" |
43 #include "chrome/common/notification_service.h" | 43 #include "chrome/common/notification_service.h" |
44 #include "chrome/common/pref_names.h" | 44 #include "chrome/common/pref_names.h" |
45 #include "chrome/common/pref_service.h" | 45 #include "chrome/common/pref_service.h" |
46 #include "chrome/browser/profile_manager.h" | 46 #include "chrome/browser/profile_manager.h" |
47 #include "chrome/common/temp_scaffolding_stubs.h" | |
48 #include "grit/chromium_strings.h" | 47 #include "grit/chromium_strings.h" |
49 #include "grit/generated_resources.h" | 48 #include "grit/generated_resources.h" |
50 #include "net/base/net_util.h" | 49 #include "net/base/net_util.h" |
51 | 50 |
52 // 10.6 adds a public API for the Spotlight-backed search menu item in the Help | 51 // 10.6 adds a public API for the Spotlight-backed search menu item in the Help |
53 // menu. Provide the declaration so it can be called below when building with | 52 // menu. Provide the declaration so it can be called below when building with |
54 // the 10.5 SDK. | 53 // the 10.5 SDK. |
55 #if !defined(MAC_OS_X_VERSION_10_6) || \ | 54 #if !defined(MAC_OS_X_VERSION_10_6) || \ |
56 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6 | 55 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6 |
57 @interface NSApplication (SnowLeopardSDKDeclarations) | 56 @interface NSApplication (SnowLeopardSDKDeclarations) |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 [appController showPreferencesWindow:nil page:page profile:profile]; | 860 [appController showPreferencesWindow:nil page:page profile:profile]; |
862 } | 861 } |
863 | 862 |
864 namespace app_controller_mac { | 863 namespace app_controller_mac { |
865 | 864 |
866 bool IsOpeningNewWindow() { | 865 bool IsOpeningNewWindow() { |
867 return g_is_opening_new_window; | 866 return g_is_opening_new_window; |
868 } | 867 } |
869 | 868 |
870 } // namespace app_controller_mac | 869 } // namespace app_controller_mac |
OLD | NEW |