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

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

Issue 7242017: Support minimizing the panel into 3-pixel line on Windows. Also support bringing up/down the titl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 6 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void PanelBrowserWindowCocoa::SetPanelBounds(const gfx::Rect& bounds) { 76 void PanelBrowserWindowCocoa::SetPanelBounds(const gfx::Rect& bounds) {
77 bounds_ = bounds; 77 bounds_ = bounds;
78 NSRect frame = ConvertCoordinatesToCocoa(bounds); 78 NSRect frame = ConvertCoordinatesToCocoa(bounds);
79 [[controller_ window] setFrame:frame display:YES animate:YES]; 79 [[controller_ window] setFrame:frame display:YES animate:YES];
80 } 80 }
81 81
82 void PanelBrowserWindowCocoa::MinimizePanel() { 82 void PanelBrowserWindowCocoa::MinimizePanel() {
83 NOTIMPLEMENTED(); 83 NOTIMPLEMENTED();
84 } 84 }
85 85
86 void PanelBrowserWindowCocoa::RestorePanel() { 86 void PanelBrowserWindowCocoa::RestorePanel(bool titlebar_only) {
87 NOTIMPLEMENTED(); 87 NOTIMPLEMENTED();
88 } 88 }
89 89
90 void PanelBrowserWindowCocoa::ClosePanel() { 90 void PanelBrowserWindowCocoa::ClosePanel() {
91 if (isClosed()) 91 if (isClosed())
92 return; 92 return;
93 93
94 NSWindow* window = [controller_ window]; 94 NSWindow* window = [controller_ window];
95 NSRect frame = [window frame]; 95 NSRect frame = [window frame];
96 frame.size.height = kMinimumWindowSize; 96 frame.size.height = kMinimumWindowSize;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 void PanelBrowserWindowCocoa::FlashPanelFrame() { 131 void PanelBrowserWindowCocoa::FlashPanelFrame() {
132 NOTIMPLEMENTED(); 132 NOTIMPLEMENTED();
133 } 133 }
134 134
135 void PanelBrowserWindowCocoa::DestroyPanelBrowser() { 135 void PanelBrowserWindowCocoa::DestroyPanelBrowser() {
136 [controller_ close]; 136 [controller_ close];
137 controller_ = NULL; 137 controller_ = NULL;
138 } 138 }
139 139
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698