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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 [NSApp changeWindowsItem:window_ title:newTitle filename:NO]; | 97 [NSApp changeWindowsItem:window_ title:newTitle filename:NO]; |
98 | 98 |
99 // Dock | 99 // Dock |
100 [window_ setMiniwindowTitle:newTitle]; | 100 [window_ setMiniwindowTitle:newTitle]; |
101 } | 101 } |
102 | 102 |
103 void BrowserWindowCocoa::UpdateDevTools() { | 103 void BrowserWindowCocoa::UpdateDevTools() { |
104 NOTIMPLEMENTED(); | 104 NOTIMPLEMENTED(); |
105 } | 105 } |
106 | 106 |
| 107 void BrowserWindowCocoa::FocusDevTools() { |
| 108 NOTIMPLEMENTED(); |
| 109 } |
| 110 |
107 void BrowserWindowCocoa::UpdateLoadingAnimations(bool should_animate) { | 111 void BrowserWindowCocoa::UpdateLoadingAnimations(bool should_animate) { |
108 [controller_ updateLoadingAnimations:should_animate ? YES : NO]; | 112 [controller_ updateLoadingAnimations:should_animate ? YES : NO]; |
109 } | 113 } |
110 | 114 |
111 void BrowserWindowCocoa::SetStarredState(bool is_starred) { | 115 void BrowserWindowCocoa::SetStarredState(bool is_starred) { |
112 [controller_ setStarredState:is_starred ? YES : NO]; | 116 [controller_ setStarredState:is_starred ? YES : NO]; |
113 } | 117 } |
114 | 118 |
115 gfx::Rect BrowserWindowCocoa::GetNormalBounds() const { | 119 gfx::Rect BrowserWindowCocoa::GetNormalBounds() const { |
116 // TODO(pinkerton): not sure if we can get the non-zoomed bounds, or if it | 120 // TODO(pinkerton): not sure if we can get the non-zoomed bounds, or if it |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 break; | 282 break; |
279 } | 283 } |
280 } | 284 } |
281 | 285 |
282 void BrowserWindowCocoa::DestroyBrowser() { | 286 void BrowserWindowCocoa::DestroyBrowser() { |
283 [controller_ destroyBrowser]; | 287 [controller_ destroyBrowser]; |
284 | 288 |
285 // at this point the controller is dead (autoreleased), so | 289 // at this point the controller is dead (autoreleased), so |
286 // make sure we don't try to reference it any more. | 290 // make sure we don't try to reference it any more. |
287 } | 291 } |
OLD | NEW |