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

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

Issue 8068020: Converts usage of GetBrowserViewForNativeWindow to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback, and make ShowPageInfo platform specific Created 9 years, 3 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
Index: chrome/browser/ui/views/browser_bubble.h
diff --git a/chrome/browser/ui/views/browser_bubble.h b/chrome/browser/ui/views/browser_bubble.h
index 58bbc54307a352696283df2aba9091fa9325fadd..a28f2219559eadb9e6b127bfc0c700b48d09d99c 100644
--- a/chrome/browser/ui/views/browser_bubble.h
+++ b/chrome/browser/ui/views/browser_bubble.h
@@ -10,6 +10,7 @@
#include "views/view.h"
#include "views/widget/widget.h"
+class Browser;
class BrowserBubbleHost;
// A class for creating a floating window that is "attached" to a particular
@@ -39,14 +40,14 @@ class BrowserBubble {
};
// Note that the bubble will size itself to the preferred size of |view| plus
- // insets of bubble border. |view| is the embedded view, |frame| is widget
- // that the bubble is being positioned relative to, |relative_to| is the
- // location that the bubble is showing relative to in screen coordinates,
+ // insets of bubble border. |view| is the embedded view, |browser| is the
+ // browser that the bubble is being positioned relative to, |relative_to| is
+ // the location that the bubble is showing relative to in screen coordinates,
// e.g. if the buuble is showing for a toolbar button, |relative_to| usually
// would be the bounds of the toolbar button in screen coordiates,
// |arrow_location| is the location where the arrow should on the bubble.
- BrowserBubble(views::View* view,
- views::Widget* frame,
+ BrowserBubble(Browser* browser,
+ views::View* view,
const gfx::Rect& relative_to,
views::BubbleBorder::ArrowLocation arrow_location);
virtual ~BrowserBubble();

Powered by Google App Engine
This is Rietveld 408576698