// Copyright (c) 2010 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. #ifndef CHROME_BROWSER_CHROMEOS_PANEL_BROWSER_VIEW_H_ #define CHROME_BROWSER_CHROMEOS_PANEL_BROWSER_VIEW_H_ #include "base/scoped_ptr.h" #include "chrome/browser/chromeos/panel_controller.h" #include "chrome/browser/views/frame/browser_view.h" class Browser; namespace chromeos { class PanelController; // A browser view that implements Panel specific behavior. class PanelBrowserView : public BrowserView, public PanelController::Delegate { public: explicit PanelBrowserView(Browser* browser); // BrowserView overrides. virtual void Init(); virtual void Show(); virtual void Close(); virtual void UpdateTitleBar(); virtual void ActivationChanged(bool activated); // PanelController::Delegate overrides virtual string16 GetPanelTitle(); virtual SkBitmap GetPanelIcon(); virtual void ClosePanel(); private: // Controls interactions with the window manager for popup panels. scoped_ptr panel_controller_; DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); }; } // namespace chromeos #endif // CHROME_BROWSER_CHROMEOS_PANEL_BROWSER_VIEW_H_