Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6501)

Unified Diff: chrome/browser/ui/views/browser_bubble.cc

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/browser_bubble.h ('k') | chrome/browser/ui/views/browser_bubble_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
+}
+
+
« no previous file with comments | « chrome/browser/ui/views/browser_bubble.h ('k') | chrome/browser/ui/views/browser_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698