summaryrefslogtreecommitdiffstats
path: root/views/widget/widget_win.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-26 23:42:23 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-26 23:42:23 +0000
commit6479c267dd32aab3f043aa2d3b2f808505c031ef (patch)
treeb4c1f5aa25fb119ed28338626e947a7f296a02e3 /views/widget/widget_win.h
parentb44f5db5391f9865d5950fe88f77dd80e7661ab2 (diff)
downloadchromium_src-6479c267dd32aab3f043aa2d3b2f808505c031ef.zip
chromium_src-6479c267dd32aab3f043aa2d3b2f808505c031ef.tar.gz
chromium_src-6479c267dd32aab3f043aa2d3b2f808505c031ef.tar.bz2
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
Diffstat (limited to 'views/widget/widget_win.h')
-rw-r--r--views/widget/widget_win.h29
1 files changed, 8 insertions, 21 deletions
diff --git a/views/widget/widget_win.h b/views/widget/widget_win.h
index 3a120db..ebf6bfa 100644
--- a/views/widget/widget_win.h
+++ b/views/widget/widget_win.h
@@ -111,10 +111,6 @@ class WidgetWin : public Widget,
delete_on_destroy_ = delete_on_destroy;
}
- // Sets the initial opacity of a layered window, or updates the window's
- // opacity if it is on the screen.
- void SetLayeredAlpha(BYTE layered_alpha);
-
// See description of use_layered_buffer_ for details.
void SetUseLayeredBuffer(bool use_layered_buffer);
@@ -126,23 +122,6 @@ class WidgetWin : public Widget,
// Returns the RootView associated with the specified HWND (if any).
static RootView* FindRootView(HWND hwnd);
- // Closes the window asynchronously by scheduling a task for it. The window
- // is destroyed as a result.
- // This invokes Hide to hide the window, and schedules a task that
- // invokes CloseNow.
- virtual void Close();
-
- // Hides the window. This does NOT delete the window, it just hides it.
- virtual void Hide();
-
- // Shows the window without changing size/position/activation state.
- virtual void Show();
-
- // Closes the window synchronously. Note that this should not be called from
- // an ATL message callback as it deletes the WidgetWin and ATL will
- // dereference it after the callback is processed.
- void CloseNow();
-
// All classes registered by WidgetWin start with this name.
static const wchar_t* const kBaseClassName;
@@ -234,8 +213,14 @@ class WidgetWin : public Widget,
// Overridden from Widget:
virtual void GetBounds(gfx::Rect* out, bool including_frame) const;
+ virtual void SetBounds(const gfx::Rect& bounds);
+ virtual void Close();
+ virtual void CloseNow();
+ virtual void Show();
+ virtual void Hide();
virtual gfx::NativeView GetNativeView() const;
virtual void PaintNow(const gfx::Rect& update_rect);
+ virtual void SetOpacity(unsigned char opacity);
virtual RootView* GetRootView();
virtual Widget* GetRootWidget() const;
virtual bool IsVisible() const;
@@ -514,6 +499,8 @@ class WidgetWin : public Widget,
// is true.
virtual bool ReleaseCaptureOnMouseReleased() { return true; }
+ // Creates the RootView to be used within this Widget. Can be overridden to
+ // create specialized RootView implementations.
virtual RootView* CreateRootView();
// Returns true if this WidgetWin is opaque.