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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_cocoa.mm

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/panels/panel_browser_window_cocoa.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/panels/panel.h" 9 #include "chrome/browser/ui/panels/panel.h"
10 #import "chrome/browser/ui/panels/panel_window_controller_cocoa.h" 10 #import "chrome/browser/ui/panels/panel_window_controller_cocoa.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 NSRect finalFrame = ConvertCoordinatesToCocoa(GetPanelBounds()); 68 NSRect finalFrame = ConvertCoordinatesToCocoa(GetPanelBounds());
69 [controller_ revealAnimatedWithFrame:finalFrame]; 69 [controller_ revealAnimatedWithFrame:finalFrame];
70 } 70 }
71 71
72 void PanelBrowserWindowCocoa::ShowPanelInactive() { 72 void PanelBrowserWindowCocoa::ShowPanelInactive() {
73 // TODO(dimich): to be implemented. 73 // TODO(dimich): to be implemented.
74 ShowPanel(); 74 ShowPanel();
75 } 75 }
76 76
77 gfx::Rect PanelBrowserWindowCocoa::GetPanelRestoredBounds() const {
78 NOTIMPLEMENTED();
79 return bounds_;
80 }
81
77 gfx::Rect PanelBrowserWindowCocoa::GetPanelBounds() const { 82 gfx::Rect PanelBrowserWindowCocoa::GetPanelBounds() const {
78 return bounds_; 83 return bounds_;
79 } 84 }
80 85
86 void PanelBrowserWindowCocoa::SetPanelRestoredBounds(const gfx::Rect& bounds) {
87 NOTIMPLEMENTED();
88 SetPanelBounds(bounds);
89 }
90
81 void PanelBrowserWindowCocoa::SetPanelBounds(const gfx::Rect& bounds) { 91 void PanelBrowserWindowCocoa::SetPanelBounds(const gfx::Rect& bounds) {
82 bounds_ = bounds; 92 bounds_ = bounds;
83 NSRect frame = ConvertCoordinatesToCocoa(bounds); 93 NSRect frame = ConvertCoordinatesToCocoa(bounds);
84 [[controller_ window] setFrame:frame display:YES animate:YES]; 94 [[controller_ window] setFrame:frame display:YES animate:YES];
85 } 95 }
86 96
87 void PanelBrowserWindowCocoa::OnPanelExpansionStateChanged( 97 void PanelBrowserWindowCocoa::OnPanelExpansionStateChanged(
88 Panel::ExpansionState expansion_state) { 98 Panel::ExpansionState expansion_state) {
89 NOTIMPLEMENTED(); 99 NOTIMPLEMENTED();
90 } 100 }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 159
150 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const { 160 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const {
151 return browser(); 161 return browser();
152 } 162 }
153 163
154 void PanelBrowserWindowCocoa::DestroyPanelBrowser() { 164 void PanelBrowserWindowCocoa::DestroyPanelBrowser() {
155 [controller_ close]; 165 [controller_ close];
156 controller_ = NULL; 166 controller_ = NULL;
157 } 167 }
158 168
169 gfx::Size PanelBrowserWindowCocoa::GetNonClientAreaSize() const {
170 NOTIMPLEMENTED();
171 return gfx::Size();
172 }
173
159 NativePanelTesting* PanelBrowserWindowCocoa::GetNativePanelTesting() { 174 NativePanelTesting* PanelBrowserWindowCocoa::GetNativePanelTesting() {
160 return this; 175 return this;
161 } 176 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698