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

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

Issue 9129013: Panel Overflow on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cr feedback Created 8 years, 10 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/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/tabs/tab_strip_model.h" 8 #include "chrome/browser/tabs/tab_strip_model.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_list.h" 10 #include "chrome/browser/ui/browser_list.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const { 248 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const {
249 return browser(); 249 return browser();
250 } 250 }
251 251
252 void PanelBrowserWindowCocoa::DestroyPanelBrowser() { 252 void PanelBrowserWindowCocoa::DestroyPanelBrowser() {
253 [controller_ close]; 253 [controller_ close];
254 } 254 }
255 255
256 gfx::Size PanelBrowserWindowCocoa::IconOnlySize() const { 256 gfx::Size PanelBrowserWindowCocoa::IconOnlySize() const {
257 // TODO(dimich): to be implemented. 257 return gfx::Size([controller_ titlebarIconOnlyWidthInScreenCoordinates],
258 return gfx::Size(); 258 [controller_ titlebarHeightInScreenCoordinates]);
259 } 259 }
260 260
261 void PanelBrowserWindowCocoa::EnsurePanelFullyVisible() { 261 void PanelBrowserWindowCocoa::EnsurePanelFullyVisible() {
262 // TODO(dimich): to be implemented. 262 }
263
264 void PanelBrowserWindowCocoa::ApplyVisualStyleForStrip(
265 PanelStripType newPanelStrip) {
266 if (!is_shown_)
267 return;
268 [controller_ applyVisualStyleForStrip:newPanelStrip];
263 } 269 }
264 270
265 void PanelBrowserWindowCocoa::SetPanelAppIconVisibility(bool visible) { 271 void PanelBrowserWindowCocoa::SetPanelAppIconVisibility(bool visible) {
266 // TODO(dimich): to be implemented. 272 // TODO(dimich): to be implemented.
267 } 273 }
268 274
269 void PanelBrowserWindowCocoa::DidCloseNativeWindow() { 275 void PanelBrowserWindowCocoa::DidCloseNativeWindow() {
270 DCHECK(!isClosed()); 276 DCHECK(!isClosed());
271 panel_->OnNativePanelClosed(); 277 panel_->OnNativePanelClosed();
272 controller_ = NULL; 278 controller_ = NULL;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 return false; 375 return false;
370 } 376 }
371 377
372 bool NativePanelTestingCocoa::IsWindowSizeKnown() const { 378 bool NativePanelTestingCocoa::IsWindowSizeKnown() const {
373 return true; 379 return true;
374 } 380 }
375 381
376 bool NativePanelTestingCocoa::IsAnimatingBounds() const { 382 bool NativePanelTestingCocoa::IsAnimatingBounds() const {
377 return [native_panel_window_->controller_ isAnimatingBounds]; 383 return [native_panel_window_->controller_ isAnimatingBounds];
378 } 384 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698