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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_gtk.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_browser_window_gtk.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/ui/browser_list.h" 8 #include "chrome/browser/ui/browser_list.h"
9 #include "chrome/browser/ui/gtk/browser_titlebar.h" 9 #include "chrome/browser/ui/gtk/browser_titlebar.h"
10 #include "chrome/browser/ui/panels/panel.h" 10 #include "chrome/browser/ui/panels/panel.h"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 389
390 gfx::Size PanelBrowserWindowGtk::IconOnlySize() const { 390 gfx::Size PanelBrowserWindowGtk::IconOnlySize() const {
391 // TODO(prasdt): to be implemented. 391 // TODO(prasdt): to be implemented.
392 return gfx::Size(); 392 return gfx::Size();
393 } 393 }
394 394
395 void PanelBrowserWindowGtk::EnsurePanelFullyVisible() { 395 void PanelBrowserWindowGtk::EnsurePanelFullyVisible() {
396 // TODO(prasdt): to be implemented. 396 // TODO(prasdt): to be implemented.
397 } 397 }
398 398
399 void PanelBrowserWindowGtk::ApplyVisualStyleForStrip(
400 PanelStripType newPanelStrip) {
401 // TODO(prasdt): to be implemented.
402 }
403
399 void PanelBrowserWindowGtk::SetPanelAppIconVisibility(bool visible) { 404 void PanelBrowserWindowGtk::SetPanelAppIconVisibility(bool visible) {
400 // TODO(prasdt): to be implemented. 405 // TODO(prasdt): to be implemented.
401 } 406 }
402 407
403 gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize( 408 gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize(
404 const gfx::Size& content_size) const { 409 const gfx::Size& content_size) const {
405 gfx::Size frame = GetNonClientFrameSize(); 410 gfx::Size frame = GetNonClientFrameSize();
406 return gfx::Size(content_size.width() + frame.width(), 411 return gfx::Size(content_size.width() + frame.width(),
407 content_size.height() + frame.height()); 412 content_size.height() + frame.height());
408 } 413 }
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 } 790 }
786 } 791 }
787 792
788 bool NativePanelTestingGtk::IsWindowSizeKnown() const { 793 bool NativePanelTestingGtk::IsWindowSizeKnown() const {
789 return panel_browser_window_gtk_->window_size_known_; 794 return panel_browser_window_gtk_->window_size_known_;
790 } 795 }
791 796
792 bool NativePanelTestingGtk::IsAnimatingBounds() const { 797 bool NativePanelTestingGtk::IsAnimatingBounds() const {
793 return panel_browser_window_gtk_->IsAnimatingBounds(); 798 return panel_browser_window_gtk_->IsAnimatingBounds();
794 } 799 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698