| Index: chrome/browser/ui/views/browser_bubble.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/browser_bubble.cc (revision 85284)
|
| +++ chrome/browser/ui/views/browser_bubble.cc (working copy)
|
| @@ -18,7 +18,7 @@
|
| return NULL;
|
|
|
| BrowserBubbleHost* bubble_host = NULL;
|
| - views::Window* window = frame->GetWindow();
|
| + views::Window* window = frame->GetContainingWindow();
|
| if (window) {
|
| bubble_host = BrowserView::GetBrowserViewForNativeWindow(
|
| window->GetNativeWindow());
|
| @@ -38,7 +38,6 @@
|
| view_(view),
|
| relative_to_(relative_to),
|
| arrow_location_(arrow_location),
|
| - visible_(false),
|
| delegate_(NULL),
|
| attached_(false),
|
| bubble_host_(GetBubbleHostFromFrame(frame)) {
|
| @@ -94,7 +93,7 @@
|
| delegate_->BubbleBrowserWindowMoved(this);
|
| else
|
| Hide();
|
| - if (visible_)
|
| + if (popup_->IsVisible())
|
| Reposition();
|
| }
|
|
|
| @@ -144,3 +143,9 @@
|
| SetBounds(relative_origin.x(), relative_origin.y(),
|
| window_bounds.width(), window_bounds.height());
|
| }
|
| +
|
| +void BrowserBubble::MovePopup(int x, int y, int w, int h) {
|
| + popup_->SetBounds(gfx::Rect(x, y, w, h));
|
| +}
|
| +
|
| +
|
|
|