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

Unified Diff: chrome/browser/ui/panels/old_panel.cc

Issue 10908153: [Panel refactor] Deprecate old panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux_chromeos test failure Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/old_panel.cc
diff --git a/chrome/browser/ui/panels/old_panel.cc b/chrome/browser/ui/panels/old_panel.cc
deleted file mode 100644
index a488cdd68e07c5546be272b775518fa84a6d136a..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/panels/old_panel.cc
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/panels/old_panel.h"
-
-#include "chrome/browser/favicon/favicon_tab_helper.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_command_controller.h"
-#include "chrome/browser/ui/browser_commands.h"
-#include "chrome/browser/ui/browser_tabstrip.h"
-#include "chrome/browser/ui/panels/panel_browser_window.h"
-#include "chrome/browser/ui/browser_tabstrip.h"
-#include "chrome/browser/ui/tab_contents/tab_contents.h"
-#include "ui/gfx/image/image.h"
-
-OldPanel::OldPanel(Browser* browser,
- const gfx::Size& min_size, const gfx::Size& max_size)
- : Panel(browser->app_name(), min_size, max_size),
- browser_(browser) {
-}
-
-OldPanel::~OldPanel() {}
-
-Browser* OldPanel::browser() const {
- return browser_;
-}
-
-BrowserWindow* OldPanel::browser_window() const {
- return panel_browser_window_.get();
-}
-
-CommandUpdater* OldPanel::command_updater() {
- return browser_->command_controller()->command_updater();
-}
-
-Profile* OldPanel::profile() const {
- return browser_->profile();
-}
-
-void OldPanel::Initialize(const gfx::Rect& bounds, Browser* browser) {
- Panel::Initialize(bounds, browser);
- panel_browser_window_.reset(
- new PanelBrowserWindow(browser, this, native_panel()));
-}
-
-content::WebContents* OldPanel::GetWebContents() const {
- return chrome::GetActiveWebContents(browser_);
-}
-
-bool OldPanel::ShouldCloseWindow() {
- return browser_->ShouldCloseWindow();
-}
-
-void OldPanel::OnWindowClosing() {
- browser_->OnWindowClosing();
-}
-
-void OldPanel::ExecuteCommandWithDisposition(
- int id, WindowOpenDisposition disposition) {
- chrome::ExecuteCommandWithDisposition(browser_, id, disposition);
-}
-
-gfx::Image OldPanel::GetCurrentPageIcon() const {
- // Browser has not been changed to return SkBitmap yet so we get the favicon
- // directly rather than use browser_->GetCurrentPageIcon().
- TabContents* contents = chrome::GetActiveTabContents(browser_);
- return contents ? contents->favicon_tab_helper()->GetFavicon() : gfx::Image();
-}
« no previous file with comments | « chrome/browser/ui/panels/old_panel.h ('k') | chrome/browser/ui/panels/old_panel_and_desktop_notification_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698