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

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

Issue 8827011: Panel strip refactor cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Finish cleanup. Created 9 years 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_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/panels/panel.h" 9 #include "chrome/browser/ui/panels/panel.h"
10 #include "chrome/browser/ui/panels/panel_manager.h" 10 #include "chrome/browser/ui/panels/panel_manager.h"
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 gfx::Size PanelBrowserWindowGtk::IconOnlySize() const { 387 gfx::Size PanelBrowserWindowGtk::IconOnlySize() const {
388 // TODO(prasdt): to be implemented. 388 // TODO(prasdt): to be implemented.
389 return gfx::Size(); 389 return gfx::Size();
390 } 390 }
391 391
392 void PanelBrowserWindowGtk::EnsurePanelFullyVisible() { 392 void PanelBrowserWindowGtk::EnsurePanelFullyVisible() {
393 // TODO(prasdt): to be implemented. 393 // TODO(prasdt): to be implemented.
394 } 394 }
395 395
396 void PanelBrowserWindowGtk::SetPanelAppIconVisibility(bool visible) {
397 // TODO(prasdt): to be implemented.
398 }
399
396 gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize( 400 gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize(
397 const gfx::Size& content_size) const { 401 const gfx::Size& content_size) const {
398 gfx::Size frame = GetNonClientFrameSize(); 402 gfx::Size frame = GetNonClientFrameSize();
399 return gfx::Size(content_size.width() + frame.width(), 403 return gfx::Size(content_size.width() + frame.width(),
400 content_size.height() + frame.height()); 404 content_size.height() + frame.height());
401 } 405 }
402 406
403 gfx::Size PanelBrowserWindowGtk::ContentSizeFromWindowSize( 407 gfx::Size PanelBrowserWindowGtk::ContentSizeFromWindowSize(
404 const gfx::Size& window_size) const { 408 const gfx::Size& window_size) const {
405 gfx::Size frame = GetNonClientFrameSize(); 409 gfx::Size frame = GetNonClientFrameSize();
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 } 761 }
758 } 762 }
759 763
760 bool NativePanelTestingGtk::IsWindowSizeKnown() const { 764 bool NativePanelTestingGtk::IsWindowSizeKnown() const {
761 return panel_browser_window_gtk_->window_size_known_; 765 return panel_browser_window_gtk_->window_size_known_;
762 } 766 }
763 767
764 bool NativePanelTestingGtk::IsAnimatingBounds() const { 768 bool NativePanelTestingGtk::IsAnimatingBounds() const {
765 return panel_browser_window_gtk_->IsAnimatingBounds(); 769 return panel_browser_window_gtk_->IsAnimatingBounds();
766 } 770 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698