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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |