Chromium Code Reviews| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 264 [self delayedFixCloseMenuItemKeyEquivalents]; | 264 [self delayedFixCloseMenuItemKeyEquivalents]; |
| 265 | 265 |
| 266 // TODO(pinkerton): If we have other things here, such as inspector panels | 266 // TODO(pinkerton): If we have other things here, such as inspector panels |
| 267 // that follow the contents of the selected webpage, we would update those | 267 // that follow the contents of the selected webpage, we would update those |
| 268 // here. | 268 // here. |
| 269 } | 269 } |
| 270 | 270 |
| 271 // Called when the number of tabs changes in one of the browser windows. The | 271 // Called when the number of tabs changes in one of the browser windows. The |
| 272 // object is the tab strip controller, but we don't currently care. | 272 // object is the tab strip controller, but we don't currently care. |
| 273 - (void)tabsChanged:(NSNotification*)notify { | 273 - (void)tabsChanged:(NSNotification*)notify { |
| 274 [self delayedFixCloseMenuItemKeyEquivalents]; | 274 // We don't need to do this on a delay, as in the method above, because the |
| 275 // window layering isn't changing. As a result, there's no chance that a | |
| 276 // different window will sneak in as the key window and cause the problems | |
| 277 // we hacked around above by clearing the key equivalents. | |
|
Mark Mentovai
2009/10/16 19:33:20
Ever notice how everyone from Canada sounds like a
| |
| 278 [self fixCloseMenuItemKeyEquivalents]; | |
| 275 } | 279 } |
| 276 | 280 |
| 277 // If the auto-update interval is not set, make it 5 hours. | 281 // If the auto-update interval is not set, make it 5 hours. |
| 278 // This code is specific to Mac Chrome Dev Channel. | 282 // This code is specific to Mac Chrome Dev Channel. |
| 279 // Placed here for 2 reasons: | 283 // Placed here for 2 reasons: |
| 280 // 1) Same spot as other Pref stuff | 284 // 1) Same spot as other Pref stuff |
| 281 // 2) Try and be friendly by keeping this after app launch | 285 // 2) Try and be friendly by keeping this after app launch |
| 282 // TODO(jrg): remove once we go Beta. | 286 // TODO(jrg): remove once we go Beta. |
| 283 - (void)setUpdateCheckInterval { | 287 - (void)setUpdateCheckInterval { |
| 284 #if defined(GOOGLE_CHROME_BUILD) | 288 #if defined(GOOGLE_CHROME_BUILD) |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 720 @end | 724 @end |
| 721 | 725 |
| 722 //--------------------------------------------------------------------------- | 726 //--------------------------------------------------------------------------- |
| 723 | 727 |
| 724 // Stub for cross-platform method that isn't called on Mac OS X. | 728 // Stub for cross-platform method that isn't called on Mac OS X. |
| 725 void ShowOptionsWindow(OptionsPage page, | 729 void ShowOptionsWindow(OptionsPage page, |
| 726 OptionsGroup highlight_group, | 730 OptionsGroup highlight_group, |
| 727 Profile* profile) { | 731 Profile* profile) { |
| 728 NOTIMPLEMENTED(); | 732 NOTIMPLEMENTED(); |
| 729 } | 733 } |
| OLD | NEW |