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

Side by Side Diff: chrome/browser/ui/panels/panel.cc

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.h" 5 #include "chrome/browser/ui/panels/panel.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/extensions/extension_prefs.h" 8 #include "chrome/browser/extensions/extension_prefs.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 274 }
275 275
276 gfx::Size Panel::IconOnlySize() const { 276 gfx::Size Panel::IconOnlySize() const {
277 return native_panel_->IconOnlySize(); 277 return native_panel_->IconOnlySize();
278 } 278 }
279 279
280 void Panel::EnsureFullyVisible() { 280 void Panel::EnsureFullyVisible() {
281 native_panel_->EnsurePanelFullyVisible(); 281 native_panel_->EnsurePanelFullyVisible();
282 } 282 }
283 283
284 void Panel::ApplyVisualStyleForStrip(PanelStripType newPanelStrip) {
285 native_panel_->ApplyVisualStyleForStrip(newPanelStrip);
286 }
287
284 bool Panel::IsMaximized() const { 288 bool Panel::IsMaximized() const {
285 // Size of panels is managed by PanelManager, they are never 'zoomed'. 289 // Size of panels is managed by PanelManager, they are never 'zoomed'.
286 return false; 290 return false;
287 } 291 }
288 292
289 bool Panel::IsMinimized() const { 293 bool Panel::IsMinimized() const {
290 return expansion_state_ != EXPANDED; 294 return expansion_state_ != EXPANDED;
291 } 295 }
292 296
293 void Panel::Maximize() { 297 void Panel::Maximize() {
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 native_panel_->ContentSizeFromWindowSize(max_size_)); 663 native_panel_->ContentSizeFromWindowSize(max_size_));
660 } 664 }
661 665
662 void Panel::OnWindowSizeAvailable() { 666 void Panel::OnWindowSizeAvailable() {
663 ConfigureAutoResize(browser()->GetSelectedWebContents()); 667 ConfigureAutoResize(browser()->GetSelectedWebContents());
664 } 668 }
665 669
666 void Panel::DestroyBrowser() { 670 void Panel::DestroyBrowser() {
667 native_panel_->DestroyPanelBrowser(); 671 native_panel_->DestroyPanelBrowser();
668 } 672 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698