| 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.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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 #endif | 576 #endif |
| 577 | 577 |
| 578 void Panel::UpdatePreferredSize(WebContents* web_contents, | 578 void Panel::UpdatePreferredSize(WebContents* web_contents, |
| 579 const gfx::Size& pref_size) { | 579 const gfx::Size& pref_size) { |
| 580 if (auto_resizable_) { | 580 if (auto_resizable_) { |
| 581 return manager()->OnPreferredWindowSizeChanged(this, | 581 return manager()->OnPreferredWindowSizeChanged(this, |
| 582 native_panel_->WindowSizeFromContentSize(pref_size)); | 582 native_panel_->WindowSizeFromContentSize(pref_size)); |
| 583 } | 583 } |
| 584 } | 584 } |
| 585 | 585 |
| 586 void Panel::ShowAvatarBubble(TabContents* tab_contents, const gfx::Rect& rect) { | 586 void Panel::ShowAvatarBubble(WebContents* web_contents, const gfx::Rect& rect) { |
| 587 // Panels will never show a new tab page so this should never be called. | 587 // Panels will never show a new tab page so this should never be called. |
| 588 NOTREACHED(); | 588 NOTREACHED(); |
| 589 } | 589 } |
| 590 | 590 |
| 591 void Panel::ShowAvatarBubbleFromAvatarButton() { | 591 void Panel::ShowAvatarBubbleFromAvatarButton() { |
| 592 // Panels will never show an avatar button so this should never be called. | 592 // Panels will never show an avatar button so this should never be called. |
| 593 NOTREACHED(); | 593 NOTREACHED(); |
| 594 } | 594 } |
| 595 | 595 |
| 596 void Panel::TabInsertedAt(TabContentsWrapper* contents, | 596 void Panel::TabInsertedAt(TabContentsWrapper* contents, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 native_panel_->ContentSizeFromWindowSize(max_size_)); | 636 native_panel_->ContentSizeFromWindowSize(max_size_)); |
| 637 } | 637 } |
| 638 | 638 |
| 639 void Panel::OnWindowSizeAvailable() { | 639 void Panel::OnWindowSizeAvailable() { |
| 640 ConfigureAutoResize(browser()->GetSelectedTabContents()); | 640 ConfigureAutoResize(browser()->GetSelectedTabContents()); |
| 641 } | 641 } |
| 642 | 642 |
| 643 void Panel::DestroyBrowser() { | 643 void Panel::DestroyBrowser() { |
| 644 native_panel_->DestroyPanelBrowser(); | 644 native_panel_->DestroyPanelBrowser(); |
| 645 } | 645 } |
| OLD | NEW |