| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ui/cocoa/browser_window_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #import "base/mac/sdk_forward_declarations.h" | 10 #import "base/mac/sdk_forward_declarations.h" |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 [window() orderOut:nil]; | 246 [window() orderOut:nil]; |
| 247 [window() close]; | 247 [window() close]; |
| 248 } | 248 } |
| 249 } else { | 249 } else { |
| 250 [window() orderOut:nil]; | 250 [window() orderOut:nil]; |
| 251 [window() close]; | 251 [window() close]; |
| 252 } | 252 } |
| 253 } | 253 } |
| 254 } | 254 } |
| 255 | 255 |
| 256 void BrowserWindowCocoa::Activate() { | 256 void BrowserWindowCocoa::Activate(bool user_gesture) { |
| 257 [controller_ activate]; | 257 [controller_ activate]; |
| 258 } | 258 } |
| 259 | 259 |
| 260 void BrowserWindowCocoa::Deactivate() { | 260 void BrowserWindowCocoa::Deactivate() { |
| 261 // TODO(jcivelli): http://crbug.com/51364 Implement me. | 261 // TODO(jcivelli): http://crbug.com/51364 Implement me. |
| 262 NOTIMPLEMENTED(); | 262 NOTIMPLEMENTED(); |
| 263 } | 263 } |
| 264 | 264 |
| 265 void BrowserWindowCocoa::FlashFrame(bool flash) { | 265 void BrowserWindowCocoa::FlashFrame(bool flash) { |
| 266 if (flash) { | 266 if (flash) { |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 void BrowserWindowCocoa::UnhideDownloadShelf() { | 833 void BrowserWindowCocoa::UnhideDownloadShelf() { |
| 834 GetDownloadShelf()->Unhide(); | 834 GetDownloadShelf()->Unhide(); |
| 835 } | 835 } |
| 836 | 836 |
| 837 void BrowserWindowCocoa::HideDownloadShelf() { | 837 void BrowserWindowCocoa::HideDownloadShelf() { |
| 838 GetDownloadShelf()->Hide(); | 838 GetDownloadShelf()->Hide(); |
| 839 StatusBubble* statusBubble = GetStatusBubble(); | 839 StatusBubble* statusBubble = GetStatusBubble(); |
| 840 if (statusBubble) | 840 if (statusBubble) |
| 841 statusBubble->Hide(); | 841 statusBubble->Hide(); |
| 842 } | 842 } |
| OLD | NEW |