| OLD | NEW |
| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 } | 364 } |
| 365 | 365 |
| 366 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { | 366 Browser* PanelBrowserWindowGtk::GetPanelBrowser() const { |
| 367 return browser(); | 367 return browser(); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void PanelBrowserWindowGtk::DestroyPanelBrowser() { | 370 void PanelBrowserWindowGtk::DestroyPanelBrowser() { |
| 371 DestroyBrowser(); | 371 DestroyBrowser(); |
| 372 } | 372 } |
| 373 | 373 |
| 374 gfx::Size PanelBrowserWindowGtk::GetIconifiedPanelSize() const { |
| 375 // TODO(prasdt): to be implemented. |
| 376 return gfx::Size(); |
| 377 } |
| 378 |
| 379 void PanelBrowserWindowGtk::EnsurePanelFullyVisible() { |
| 380 // TODO(prasdt): to be implemented. |
| 381 } |
| 382 |
| 383 void PanelBrowserWindowGtk::UpdatePanelIconInDesktopBar(PanelIconState state) { |
| 384 // TODO(prasdt): to be implemented. |
| 385 } |
| 386 |
| 374 gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize( | 387 gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize( |
| 375 const gfx::Size& content_size) const { | 388 const gfx::Size& content_size) const { |
| 376 gfx::Size frame = GetNonClientFrameSize(); | 389 gfx::Size frame = GetNonClientFrameSize(); |
| 377 return gfx::Size(content_size.width() + frame.width(), | 390 return gfx::Size(content_size.width() + frame.width(), |
| 378 content_size.height() + frame.height()); | 391 content_size.height() + frame.height()); |
| 379 } | 392 } |
| 380 | 393 |
| 381 gfx::Size PanelBrowserWindowGtk::ContentSizeFromWindowSize( | 394 gfx::Size PanelBrowserWindowGtk::ContentSizeFromWindowSize( |
| 382 const gfx::Size& window_size) const { | 395 const gfx::Size& window_size) const { |
| 383 gfx::Size frame = GetNonClientFrameSize(); | 396 gfx::Size frame = GetNonClientFrameSize(); |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 } | 748 } |
| 736 } | 749 } |
| 737 | 750 |
| 738 bool NativePanelTestingGtk::IsWindowSizeKnown() const { | 751 bool NativePanelTestingGtk::IsWindowSizeKnown() const { |
| 739 return panel_browser_window_gtk_->window_size_known_; | 752 return panel_browser_window_gtk_->window_size_known_; |
| 740 } | 753 } |
| 741 | 754 |
| 742 bool NativePanelTestingGtk::IsAnimatingBounds() const { | 755 bool NativePanelTestingGtk::IsAnimatingBounds() const { |
| 743 return panel_browser_window_gtk_->IsAnimatingBounds(); | 756 return panel_browser_window_gtk_->IsAnimatingBounds(); |
| 744 } | 757 } |
| OLD | NEW |