From 6479c267dd32aab3f043aa2d3b2f808505c031ef Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Tue, 26 May 2009 23:42:23 +0000 Subject: Removes WidgetWin dependency from StatusBubbleViews so that it can compile on Linux. Requires: - making SetOpacity a cross platform method on Widget, replacing SetLayeredAlpha. - moving Window::SetBounds to Widget - replacing usage of MoveWindow in StatusBubbleViews with call to new SetBounds method. BUG=none TEST=make sure transparency still works for floating widgets like - status bubble, full screen exit bubble, dragged tabs Review URL: http://codereview.chromium.org/113846 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16948 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/status_bubble_views.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'chrome/browser/views/status_bubble_views.h') diff --git a/chrome/browser/views/status_bubble_views.h b/chrome/browser/views/status_bubble_views.h index cdda382..5a94bb2 100644 --- a/chrome/browser/views/status_bubble_views.h +++ b/chrome/browser/views/status_bubble_views.h @@ -6,11 +6,14 @@ #define CHROME_BROWSER_VIEWS_STATUS_BUBBLE_VIEWS_H_ #include "base/gfx/rect.h" +#include "base/logging.h" +#include "base/scoped_ptr.h" #include "chrome/browser/status_bubble.h" -#include "views/widget/widget.h" -#include "views/widget/widget_win.h" class GURL; +namespace views { +class Widget; +} // StatusBubble displays a bubble of text that fades in, hovers over the // browser chrome and fades away when not needed. It is primarily designed @@ -53,15 +56,15 @@ class StatusBubbleViews : public StatusBubble { std::wstring url_text_; // Position relative to the parent window. - CPoint position_; - CSize size_; + gfx::Point position_; + gfx::Size size_; // How vertically offset the bubble is from its root position_. int offset_; // We use a HWND for the popup so that it may float above any HWNDs in our // UI (the location bar, for example). - scoped_ptr popup_; + scoped_ptr popup_; double opacity_; views::Widget* frame_; -- cgit v1.1