Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Side by Side Diff: chrome/browser/ui/cocoa/panels/panel_cocoa.mm

Issue 13853010: Make panels turn on or off shadow effect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/panels/panel_cocoa.h ('k') | chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698