| 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/panels/panel_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/panels/panel_cocoa.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" | 8 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" |
| 9 #import "chrome/browser/ui/cocoa/panels/panel_titlebar_view_cocoa.h" | 9 #import "chrome/browser/ui/cocoa/panels/panel_titlebar_view_cocoa.h" |
| 10 #import "chrome/browser/ui/cocoa/panels/panel_utils_cocoa.h" | 10 #import "chrome/browser/ui/cocoa/panels/panel_utils_cocoa.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 } | 230 } |
| 231 | 231 |
| 232 void PanelCocoa::EnableResizeByMouse(bool enable) { | 232 void PanelCocoa::EnableResizeByMouse(bool enable) { |
| 233 [controller_ enableResizeByMouse:enable]; | 233 [controller_ enableResizeByMouse:enable]; |
| 234 } | 234 } |
| 235 | 235 |
| 236 void PanelCocoa::UpdatePanelMinimizeRestoreButtonVisibility() { | 236 void PanelCocoa::UpdatePanelMinimizeRestoreButtonVisibility() { |
| 237 [controller_ updateTitleBarMinimizeRestoreButtonVisibility]; | 237 [controller_ updateTitleBarMinimizeRestoreButtonVisibility]; |
| 238 } | 238 } |
| 239 | 239 |
| 240 void PanelCocoa::UpdatePanelStackingProperty() { |
| 241 NOTIMPLEMENTED(); |
| 242 } |
| 243 |
| 240 void PanelCocoa::PanelExpansionStateChanging( | 244 void PanelCocoa::PanelExpansionStateChanging( |
| 241 Panel::ExpansionState old_state, Panel::ExpansionState new_state) { | 245 Panel::ExpansionState old_state, Panel::ExpansionState new_state) { |
| 242 [controller_ updateWindowLevel:(new_state != Panel::EXPANDED)]; | 246 [controller_ updateWindowLevel:(new_state != Panel::EXPANDED)]; |
| 243 } | 247 } |
| 244 | 248 |
| 245 void PanelCocoa::AttachWebContents(content::WebContents* contents) { | 249 void PanelCocoa::AttachWebContents(content::WebContents* contents) { |
| 246 [controller_ webContentsInserted:contents]; | 250 [controller_ webContentsInserted:contents]; |
| 247 } | 251 } |
| 248 | 252 |
| 249 void PanelCocoa::DetachWebContents(content::WebContents* contents) { | 253 void PanelCocoa::DetachWebContents(content::WebContents* contents) { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 return ![[titlebar() closeButton] isHidden]; | 386 return ![[titlebar() closeButton] isHidden]; |
| 383 case panel::MINIMIZE_BUTTON: | 387 case panel::MINIMIZE_BUTTON: |
| 384 return ![[titlebar() minimizeButton] isHidden]; | 388 return ![[titlebar() minimizeButton] isHidden]; |
| 385 case panel::RESTORE_BUTTON: | 389 case panel::RESTORE_BUTTON: |
| 386 return ![[titlebar() restoreButton] isHidden]; | 390 return ![[titlebar() restoreButton] isHidden]; |
| 387 default: | 391 default: |
| 388 NOTREACHED(); | 392 NOTREACHED(); |
| 389 } | 393 } |
| 390 return false; | 394 return false; |
| 391 } | 395 } |
| OLD | NEW |