| 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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 } | 469 } |
| 470 | 470 |
| 471 void Panel::ShowBackgroundPages() { | 471 void Panel::ShowBackgroundPages() { |
| 472 NOTIMPLEMENTED(); | 472 NOTIMPLEMENTED(); |
| 473 } | 473 } |
| 474 | 474 |
| 475 void Panel::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { | 475 void Panel::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { |
| 476 NOTIMPLEMENTED(); | 476 NOTIMPLEMENTED(); |
| 477 } | 477 } |
| 478 | 478 |
| 479 void Panel::ShowChromeToMobileBubble() { |
| 480 NOTIMPLEMENTED(); |
| 481 } |
| 482 |
| 479 bool Panel::IsDownloadShelfVisible() const { | 483 bool Panel::IsDownloadShelfVisible() const { |
| 480 return false; | 484 return false; |
| 481 } | 485 } |
| 482 | 486 |
| 483 DownloadShelf* Panel::GetDownloadShelf() { | 487 DownloadShelf* Panel::GetDownloadShelf() { |
| 484 Browser* panel_browser = native_panel_->GetPanelBrowser(); | 488 Browser* panel_browser = native_panel_->GetPanelBrowser(); |
| 485 Profile* profile = panel_browser->GetProfile(); | 489 Profile* profile = panel_browser->GetProfile(); |
| 486 Browser* tabbed_browser = Browser::GetTabbedBrowser(profile, true); | 490 Browser* tabbed_browser = Browser::GetTabbedBrowser(profile, true); |
| 487 | 491 |
| 488 if (!tabbed_browser) { | 492 if (!tabbed_browser) { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 native_panel_->ContentSizeFromWindowSize(max_size_)); | 693 native_panel_->ContentSizeFromWindowSize(max_size_)); |
| 690 } | 694 } |
| 691 | 695 |
| 692 void Panel::OnWindowSizeAvailable() { | 696 void Panel::OnWindowSizeAvailable() { |
| 693 ConfigureAutoResize(browser()->GetSelectedWebContents()); | 697 ConfigureAutoResize(browser()->GetSelectedWebContents()); |
| 694 } | 698 } |
| 695 | 699 |
| 696 void Panel::DestroyBrowser() { | 700 void Panel::DestroyBrowser() { |
| 697 native_panel_->DestroyPanelBrowser(); | 701 native_panel_->DestroyPanelBrowser(); |
| 698 } | 702 } |
| OLD | NEW |