| 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 } | 458 } |
| 459 | 459 |
| 460 void Panel::ShowBackgroundPages() { | 460 void Panel::ShowBackgroundPages() { |
| 461 NOTIMPLEMENTED(); | 461 NOTIMPLEMENTED(); |
| 462 } | 462 } |
| 463 | 463 |
| 464 void Panel::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { | 464 void Panel::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { |
| 465 NOTIMPLEMENTED(); | 465 NOTIMPLEMENTED(); |
| 466 } | 466 } |
| 467 | 467 |
| 468 void Panel::ShowChromeToMobileBubble() { |
| 469 NOTIMPLEMENTED(); |
| 470 } |
| 471 |
| 468 bool Panel::IsDownloadShelfVisible() const { | 472 bool Panel::IsDownloadShelfVisible() const { |
| 469 return false; | 473 return false; |
| 470 } | 474 } |
| 471 | 475 |
| 472 DownloadShelf* Panel::GetDownloadShelf() { | 476 DownloadShelf* Panel::GetDownloadShelf() { |
| 473 Browser* panel_browser = native_panel_->GetPanelBrowser(); | 477 Browser* panel_browser = native_panel_->GetPanelBrowser(); |
| 474 Profile* profile = panel_browser->GetProfile(); | 478 Profile* profile = panel_browser->GetProfile(); |
| 475 Browser* tabbed_browser = Browser::GetTabbedBrowser(profile, true); | 479 Browser* tabbed_browser = Browser::GetTabbedBrowser(profile, true); |
| 476 | 480 |
| 477 if (!tabbed_browser) { | 481 if (!tabbed_browser) { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 native_panel_->ContentSizeFromWindowSize(max_size_)); | 682 native_panel_->ContentSizeFromWindowSize(max_size_)); |
| 679 } | 683 } |
| 680 | 684 |
| 681 void Panel::OnWindowSizeAvailable() { | 685 void Panel::OnWindowSizeAvailable() { |
| 682 ConfigureAutoResize(browser()->GetSelectedWebContents()); | 686 ConfigureAutoResize(browser()->GetSelectedWebContents()); |
| 683 } | 687 } |
| 684 | 688 |
| 685 void Panel::DestroyBrowser() { | 689 void Panel::DestroyBrowser() { |
| 686 native_panel_->DestroyPanelBrowser(); | 690 native_panel_->DestroyPanelBrowser(); |
| 687 } | 691 } |
| OLD | NEW |