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 #include "app/l10n_util_mac.h" | 5 #include "app/l10n_util_mac.h" |
6 #include "base/gfx/rect.h" | 6 #include "base/gfx/rect.h" |
7 #include "base/keyboard_codes.h" | 7 #include "base/keyboard_codes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
10 #include "chrome/app/chrome_dll_resource.h" | 10 #include "chrome/app/chrome_dll_resource.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 136 } |
137 | 137 |
138 void BrowserWindowCocoa::ShelfVisibilityChanged() { | 138 void BrowserWindowCocoa::ShelfVisibilityChanged() { |
139 // Mac doesn't yet support showing the bookmark bar at a different size on | 139 // Mac doesn't yet support showing the bookmark bar at a different size on |
140 // the new tab page. When it does, this method should attempt to relayout the | 140 // the new tab page. When it does, this method should attempt to relayout the |
141 // bookmark bar/extension shelf as their preferred height may have changed. | 141 // bookmark bar/extension shelf as their preferred height may have changed. |
142 NOTIMPLEMENTED(); | 142 NOTIMPLEMENTED(); |
143 } | 143 } |
144 | 144 |
145 void BrowserWindowCocoa::UpdateDevTools() { | 145 void BrowserWindowCocoa::UpdateDevTools() { |
146 NOTIMPLEMENTED(); | 146 [controller_ updateDevToolsForContents: |
| 147 browser_->tabstrip_model()->GetSelectedTabContents()]; |
147 } | 148 } |
148 | 149 |
149 void BrowserWindowCocoa::FocusDevTools() { | 150 void BrowserWindowCocoa::FocusDevTools() { |
150 NOTIMPLEMENTED(); | 151 NOTIMPLEMENTED(); |
151 } | 152 } |
152 | 153 |
153 void BrowserWindowCocoa::UpdateLoadingAnimations(bool should_animate) { | 154 void BrowserWindowCocoa::UpdateLoadingAnimations(bool should_animate) { |
154 // Do nothing on Mac. | 155 // Do nothing on Mac. |
155 } | 156 } |
156 | 157 |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 break; | 513 break; |
513 } | 514 } |
514 } | 515 } |
515 | 516 |
516 void BrowserWindowCocoa::DestroyBrowser() { | 517 void BrowserWindowCocoa::DestroyBrowser() { |
517 [controller_ destroyBrowser]; | 518 [controller_ destroyBrowser]; |
518 | 519 |
519 // at this point the controller is dead (autoreleased), so | 520 // at this point the controller is dead (autoreleased), so |
520 // make sure we don't try to reference it any more. | 521 // make sure we don't try to reference it any more. |
521 } | 522 } |
OLD | NEW |