| 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 "base/gfx/rect.h" | 5 #include "base/gfx/rect.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/sys_string_conversions.h" | 7 #include "base/sys_string_conversions.h" |
| 8 #include "chrome/browser/bookmarks/bookmark_utils.h" | 8 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 9 #include "chrome/browser/cocoa/browser_window_cocoa.h" | 9 #include "chrome/browser/cocoa/browser_window_cocoa.h" |
| 10 #import "chrome/browser/cocoa/browser_window_controller.h" | 10 #import "chrome/browser/cocoa/browser_window_controller.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 void BrowserWindowCocoa::UpdateDevTools() { | 107 void BrowserWindowCocoa::UpdateDevTools() { |
| 108 NOTIMPLEMENTED(); | 108 NOTIMPLEMENTED(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void BrowserWindowCocoa::FocusDevTools() { | 111 void BrowserWindowCocoa::FocusDevTools() { |
| 112 NOTIMPLEMENTED(); | 112 NOTIMPLEMENTED(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 void BrowserWindowCocoa::UpdateLoadingAnimations(bool should_animate) { | 115 void BrowserWindowCocoa::UpdateLoadingAnimations(bool should_animate) { |
| 116 [controller_ updateLoadingAnimations:should_animate ? YES : NO]; | 116 // Do nothing on Mac. |
| 117 } | 117 } |
| 118 | 118 |
| 119 void BrowserWindowCocoa::SetStarredState(bool is_starred) { | 119 void BrowserWindowCocoa::SetStarredState(bool is_starred) { |
| 120 [controller_ setStarredState:is_starred ? YES : NO]; | 120 [controller_ setStarredState:is_starred ? YES : NO]; |
| 121 } | 121 } |
| 122 | 122 |
| 123 gfx::Rect BrowserWindowCocoa::GetRestoredBounds() const { | 123 gfx::Rect BrowserWindowCocoa::GetRestoredBounds() const { |
| 124 // TODO(pinkerton): not sure if we can get the non-zoomed bounds, or if it | 124 // TODO(pinkerton): not sure if we can get the non-zoomed bounds, or if it |
| 125 // really matters. We may want to let Cocoa handle all this for us. | 125 // really matters. We may want to let Cocoa handle all this for us. |
| 126 NSRect frame = [window_ frame]; | 126 NSRect frame = [window_ frame]; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 break; | 312 break; |
| 313 } | 313 } |
| 314 } | 314 } |
| 315 | 315 |
| 316 void BrowserWindowCocoa::DestroyBrowser() { | 316 void BrowserWindowCocoa::DestroyBrowser() { |
| 317 [controller_ destroyBrowser]; | 317 [controller_ destroyBrowser]; |
| 318 | 318 |
| 319 // at this point the controller is dead (autoreleased), so | 319 // at this point the controller is dead (autoreleased), so |
| 320 // make sure we don't try to reference it any more. | 320 // make sure we don't try to reference it any more. |
| 321 } | 321 } |
| OLD | NEW |