Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: chrome/browser/ui/panels/panel.cc

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698