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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 265 |
266 void PanelCocoa::MinimizePanelBySystem() { | 266 void PanelCocoa::MinimizePanelBySystem() { |
267 NOTIMPLEMENTED(); | 267 NOTIMPLEMENTED(); |
268 } | 268 } |
269 | 269 |
270 bool PanelCocoa::IsPanelMinimizedBySystem() const { | 270 bool PanelCocoa::IsPanelMinimizedBySystem() const { |
271 NOTIMPLEMENTED(); | 271 NOTIMPLEMENTED(); |
272 return false; | 272 return false; |
273 } | 273 } |
274 | 274 |
| 275 void PanelCocoa::ShowShadow(bool show) { |
| 276 [controller_ showShadow:show]; |
| 277 } |
| 278 |
275 void PanelCocoa::PanelExpansionStateChanging( | 279 void PanelCocoa::PanelExpansionStateChanging( |
276 Panel::ExpansionState old_state, Panel::ExpansionState new_state) { | 280 Panel::ExpansionState old_state, Panel::ExpansionState new_state) { |
277 [controller_ updateWindowLevel:(new_state != Panel::EXPANDED)]; | 281 [controller_ updateWindowLevel:(new_state != Panel::EXPANDED)]; |
278 } | 282 } |
279 | 283 |
280 void PanelCocoa::AttachWebContents(content::WebContents* contents) { | 284 void PanelCocoa::AttachWebContents(content::WebContents* contents) { |
281 [controller_ webContentsInserted:contents]; | 285 [controller_ webContentsInserted:contents]; |
282 } | 286 } |
283 | 287 |
284 void PanelCocoa::DetachWebContents(content::WebContents* contents) { | 288 void PanelCocoa::DetachWebContents(content::WebContents* contents) { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 return ![[titlebar() restoreButton] isHidden]; | 432 return ![[titlebar() restoreButton] isHidden]; |
429 default: | 433 default: |
430 NOTREACHED(); | 434 NOTREACHED(); |
431 } | 435 } |
432 return false; | 436 return false; |
433 } | 437 } |
434 | 438 |
435 panel::CornerStyle CocoaNativePanelTesting::GetWindowCornerStyle() const { | 439 panel::CornerStyle CocoaNativePanelTesting::GetWindowCornerStyle() const { |
436 return native_panel_window_->corner_style_; | 440 return native_panel_window_->corner_style_; |
437 } | 441 } |
OLD | NEW |