| 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 "chrome/browser/browser_window_cocoa.h" | 7 #include "chrome/browser/browser_window_cocoa.h" |
| 8 #include "chrome/browser/browser_window_controller.h" | 8 #include "chrome/browser/browser_window_controller.h" |
| 9 | 9 |
| 10 BrowserWindowCocoa::BrowserWindowCocoa(BrowserWindowController* controller, | 10 BrowserWindowCocoa::BrowserWindowCocoa(BrowserWindowController* controller, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 } | 88 } |
| 89 | 89 |
| 90 gfx::Rect BrowserWindowCocoa::GetRootWindowResizerRect() const { | 90 gfx::Rect BrowserWindowCocoa::GetRootWindowResizerRect() const { |
| 91 return gfx::Rect(); | 91 return gfx::Rect(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 LocationBar* BrowserWindowCocoa::GetLocationBar() const { | 94 LocationBar* BrowserWindowCocoa::GetLocationBar() const { |
| 95 return [controller_ locationBar]; | 95 return [controller_ locationBar]; |
| 96 } | 96 } |
| 97 | 97 |
| 98 void BrowserWindowCocoa::SetFocusToLocationBar() { |
| 99 NOTIMPLEMENTED(); |
| 100 } |
| 101 |
| 98 void BrowserWindowCocoa::UpdateStopGoState(bool is_loading) { | 102 void BrowserWindowCocoa::UpdateStopGoState(bool is_loading) { |
| 99 NOTIMPLEMENTED(); | 103 NOTIMPLEMENTED(); |
| 100 } | 104 } |
| 101 | 105 |
| 102 void BrowserWindowCocoa::UpdateToolbar(TabContents* contents, | 106 void BrowserWindowCocoa::UpdateToolbar(TabContents* contents, |
| 103 bool should_restore_state) { | 107 bool should_restore_state) { |
| 104 [controller_ updateToolbarWithContents:contents | 108 [controller_ updateToolbarWithContents:contents |
| 105 shouldRestoreState:should_restore_state ? YES : NO]; | 109 shouldRestoreState:should_restore_state ? YES : NO]; |
| 106 } | 110 } |
| 107 | 111 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 void* parent_window) { | 172 void* parent_window) { |
| 169 NOTIMPLEMENTED(); | 173 NOTIMPLEMENTED(); |
| 170 } | 174 } |
| 171 | 175 |
| 172 void BrowserWindowCocoa::DestroyBrowser() { | 176 void BrowserWindowCocoa::DestroyBrowser() { |
| 173 [controller_ destroyBrowser]; | 177 [controller_ destroyBrowser]; |
| 174 | 178 |
| 175 // at this point the controller is dead (autoreleased), so | 179 // at this point the controller is dead (autoreleased), so |
| 176 // make sure we don't try to reference it any more. | 180 // make sure we don't try to reference it any more. |
| 177 } | 181 } |
| OLD | NEW |