summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/browser_bubble_host.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 07:35:32 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 07:35:32 +0000
commit213dac2f0bff9162502fe325b6ebb85a255efcb2 (patch)
tree3640cb1f19976e38677b8632537d2d41f8444d0f /chrome/browser/views/frame/browser_bubble_host.cc
parent6de53d401aa8dc6c7e0a9874c71a95ce88ade50d (diff)
downloadchromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.zip
chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.gz
chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.bz2
Move browser/views to browser/ui/views
TBR=brettw BUG=none TEST=none Review URL: http://codereview.chromium.org/4694005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/browser_bubble_host.cc')
-rw-r--r--chrome/browser/views/frame/browser_bubble_host.cc43
1 files changed, 0 insertions, 43 deletions
diff --git a/chrome/browser/views/frame/browser_bubble_host.cc b/chrome/browser/views/frame/browser_bubble_host.cc
deleted file mode 100644
index 60809bf..0000000
--- a/chrome/browser/views/frame/browser_bubble_host.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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 "chrome/browser/views/frame/browser_bubble_host.h"
-
-#include "base/logging.h"
-#include "chrome/browser/views/browser_bubble.h"
-
-void BrowserBubbleHost::WindowMoved() {
- // Do safe iteration in case the bubble winds up closing as a result of this
- // message.
- for (BubbleSet::iterator i = browser_bubbles_.begin();
- i != browser_bubbles_.end();) {
- BubbleSet::iterator bubble = i++;
- (*bubble)->BrowserWindowMoved();
- }
-}
-
-void BrowserBubbleHost::AttachBrowserBubble(BrowserBubble* bubble) {
- DCHECK(browser_bubbles_.find(bubble) == browser_bubbles_.end()) <<
- "Attempt to register the same BrowserBubble multiple times.";
- browser_bubbles_.insert(bubble);
-}
-
-void BrowserBubbleHost::DetachBrowserBubble(BrowserBubble* bubble) {
- BubbleSet::iterator it = browser_bubbles_.find(bubble);
- DCHECK(it != browser_bubbles_.end()) <<
- "Attempt to detach an unrecognized BrowserBubble.";
- if (it != browser_bubbles_.end())
- browser_bubbles_.erase(it);
-}
-
-void BrowserBubbleHost::Close() {
- // BrowserWindowClosing will usually cause the bubble to remove itself from
- // the set, so we need to iterate in a way that's safe against deletion.
- for (BubbleSet::iterator i = browser_bubbles_.begin();
- i != browser_bubbles_.end();) {
- BubbleSet::iterator bubble = i++;
- (*bubble)->BrowserWindowClosing();
- }
-}
-