OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "chrome/browser/ui/panels/panel.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/extensions/extension_prefs.h" | 8 #include "chrome/browser/extensions/extension_prefs.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 } | 274 } |
275 | 275 |
276 gfx::Size Panel::IconOnlySize() const { | 276 gfx::Size Panel::IconOnlySize() const { |
277 return native_panel_->IconOnlySize(); | 277 return native_panel_->IconOnlySize(); |
278 } | 278 } |
279 | 279 |
280 void Panel::EnsureFullyVisible() { | 280 void Panel::EnsureFullyVisible() { |
281 native_panel_->EnsurePanelFullyVisible(); | 281 native_panel_->EnsurePanelFullyVisible(); |
282 } | 282 } |
283 | 283 |
| 284 void Panel::ApplyVisualStyleForStrip(PanelStripType newPanelStrip) { |
| 285 native_panel_->ApplyVisualStyleForStrip(newPanelStrip); |
| 286 } |
| 287 |
284 bool Panel::IsMaximized() const { | 288 bool Panel::IsMaximized() const { |
285 // Size of panels is managed by PanelManager, they are never 'zoomed'. | 289 // Size of panels is managed by PanelManager, they are never 'zoomed'. |
286 return false; | 290 return false; |
287 } | 291 } |
288 | 292 |
289 bool Panel::IsMinimized() const { | 293 bool Panel::IsMinimized() const { |
290 return expansion_state_ != EXPANDED; | 294 return expansion_state_ != EXPANDED; |
291 } | 295 } |
292 | 296 |
293 void Panel::Maximize() { | 297 void Panel::Maximize() { |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 native_panel_->ContentSizeFromWindowSize(max_size_)); | 663 native_panel_->ContentSizeFromWindowSize(max_size_)); |
660 } | 664 } |
661 | 665 |
662 void Panel::OnWindowSizeAvailable() { | 666 void Panel::OnWindowSizeAvailable() { |
663 ConfigureAutoResize(browser()->GetSelectedWebContents()); | 667 ConfigureAutoResize(browser()->GetSelectedWebContents()); |
664 } | 668 } |
665 | 669 |
666 void Panel::DestroyBrowser() { | 670 void Panel::DestroyBrowser() { |
667 native_panel_->DestroyPanelBrowser(); | 671 native_panel_->DestroyPanelBrowser(); |
668 } | 672 } |
OLD | NEW |