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

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: Synced 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 387
388 gfx::Size PanelBrowserWindowGtk::IconOnlySize() const { 388 gfx::Size PanelBrowserWindowGtk::IconOnlySize() const {
389 // TODO(prasdt): to be implemented. 389 // TODO(prasdt): to be implemented.
390 return gfx::Size(); 390 return gfx::Size();
391 } 391 }
392 392
393 void PanelBrowserWindowGtk::EnsurePanelFullyVisible() { 393 void PanelBrowserWindowGtk::EnsurePanelFullyVisible() {
394 // TODO(prasdt): to be implemented. 394 // TODO(prasdt): to be implemented.
395 } 395 }
396 396
397 void PanelBrowserWindowGtk::SetPanelAppIconVisibility(bool visible) {
398 // TODO(prasdt): to be implemented.
399 }
400
397 gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize( 401 gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize(
398 const gfx::Size& content_size) const { 402 const gfx::Size& content_size) const {
399 gfx::Size frame = GetNonClientFrameSize(); 403 gfx::Size frame = GetNonClientFrameSize();
400 return gfx::Size(content_size.width() + frame.width(), 404 return gfx::Size(content_size.width() + frame.width(),
401 content_size.height() + frame.height()); 405 content_size.height() + frame.height());
402 } 406 }
403 407
404 gfx::Size PanelBrowserWindowGtk::ContentSizeFromWindowSize( 408 gfx::Size PanelBrowserWindowGtk::ContentSizeFromWindowSize(
405 const gfx::Size& window_size) const { 409 const gfx::Size& window_size) const {
406 gfx::Size frame = GetNonClientFrameSize(); 410 gfx::Size frame = GetNonClientFrameSize();
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 } 757 }
754 } 758 }
755 759
756 bool NativePanelTestingGtk::IsWindowSizeKnown() const { 760 bool NativePanelTestingGtk::IsWindowSizeKnown() const {
757 return panel_browser_window_gtk_->window_size_known_; 761 return panel_browser_window_gtk_->window_size_known_;
758 } 762 }
759 763
760 bool NativePanelTestingGtk::IsAnimatingBounds() const { 764 bool NativePanelTestingGtk::IsAnimatingBounds() const {
761 return panel_browser_window_gtk_->IsAnimatingBounds(); 765 return panel_browser_window_gtk_->IsAnimatingBounds();
762 } 766 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.h ('k') | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698