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 <set>

#include "base/basictypes.h"

class BrowserBubble;

// A class providing a hosting environment for BrowserBubble instances.
// Allows for notification to attached BrowserBubbles of browser move, and
// close events.
class BrowserBubbleHost {
  BrowserBubbleHost() {}

  // Invoked when the window containing the attached browser-bubbles is moved.
  // Calls BrowserBubble::BrowserWindowMoved on all attached bubbles.
  void WindowMoved();

  // To be called when the frame containing the BrowserBubbleHost is closing.
  // Calls BrowserBubble::BrowserWindowClosing on all attached bubbles.
  void Close();

  // Registers/Unregisters |bubble| to receive notifications when the host moves
  // or is closed.
  void AttachBrowserBubble(BrowserBubble* bubble);
  void DetachBrowserBubble(BrowserBubble* bubble);

  // The set of bubbles associated with this host.
  typedef std::set<BrowserBubble*> BubbleSet;
  BubbleSet browser_bubbles_;



Generated by  Doxygen 1.6.0   Back to index