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::IconOnlySize() 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 |
374 gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize( | 383 gfx::Size PanelBrowserWindowGtk::WindowSizeFromContentSize( |
375 const gfx::Size& content_size) const { | 384 const gfx::Size& content_size) const { |
376 gfx::Size frame = GetNonClientFrameSize(); | 385 gfx::Size frame = GetNonClientFrameSize(); |
377 return gfx::Size(content_size.width() + frame.width(), | 386 return gfx::Size(content_size.width() + frame.width(), |
378 content_size.height() + frame.height()); | 387 content_size.height() + frame.height()); |
379 } | 388 } |
380 | 389 |
381 gfx::Size PanelBrowserWindowGtk::ContentSizeFromWindowSize( | 390 gfx::Size PanelBrowserWindowGtk::ContentSizeFromWindowSize( |
382 const gfx::Size& window_size) const { | 391 const gfx::Size& window_size) const { |
383 gfx::Size frame = GetNonClientFrameSize(); | 392 gfx::Size frame = GetNonClientFrameSize(); |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 } | 744 } |
736 } | 745 } |
737 | 746 |
738 bool NativePanelTestingGtk::IsWindowSizeKnown() const { | 747 bool NativePanelTestingGtk::IsWindowSizeKnown() const { |
739 return panel_browser_window_gtk_->window_size_known_; | 748 return panel_browser_window_gtk_->window_size_known_; |
740 } | 749 } |
741 | 750 |
742 bool NativePanelTestingGtk::IsAnimatingBounds() const { | 751 bool NativePanelTestingGtk::IsAnimatingBounds() const { |
743 return panel_browser_window_gtk_->IsAnimatingBounds(); | 752 return panel_browser_window_gtk_->IsAnimatingBounds(); |
744 } | 753 } |
OLD | NEW |