Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package


// 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.


#include "app/x11_util.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/chromeos/frame/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 {
  explicit PanelBrowserView(Browser* browser);

  // BrowserView overrides.
  virtual void Init();
  virtual void Show();
  virtual void Close();
  virtual void UpdateTitleBar();
  virtual void ActivationChanged(bool activated);

  virtual void SetCreatorView(PanelBrowserView* creator);

  // PanelController::Delegate overrides
  virtual string16 GetPanelTitle();
  virtual SkBitmap GetPanelIcon();
  virtual void ClosePanel();
  virtual void OnPanelStateChanged(PanelController::State state) {}

  // Controls interactions with the window manager for popup panels.
  scoped_ptr<chromeos::PanelController> panel_controller_;

  // X id for the content window of the panel that created this
  // panel.  This tells ChromeOS that it should be created next to the
  // content window of this panel.
  XID creator_xid_;

}  // namespace chromeos


Generated by  Doxygen 1.6.0   Back to index