diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 17:45:50 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 17:45:50 +0000 |
commit | 175d82b7675c9ca4e45efda7393fc636bc722299 (patch) | |
tree | 711078621f4d09349717ded9c91039d1651b7ecb /chrome/browser/views | |
parent | c8b152d7db2db01cf545e0c5483d24ba95da7a21 (diff) | |
download | chromium_src-175d82b7675c9ca4e45efda7393fc636bc722299.zip chromium_src-175d82b7675c9ca4e45efda7393fc636bc722299.tar.gz chromium_src-175d82b7675c9ca4e45efda7393fc636bc722299.tar.bz2 |
A few minor changes to WidgetWin:
* Add a Show() method to match Hide(), and use it in existing code. This abstracts the specifics of this a bit and will be convenient for fullscreen UI.
* Safe Hide() (and, for speed, Close()) behind IsWindow() checks just like CloseNow(), which I'll need for some tricky window-closing code in the fullscreen UI. (Right now, Hide() will eventually fail an assertion if you call it when the widget is no longer a window, which seems unnecessarily harsh.)
Review URL: http://codereview.chromium.org/27017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/download_started_animation.cc | 2 | ||||
-rw-r--r-- | chrome/browser/views/status_bubble_views.cc | 2 | ||||
-rw-r--r-- | chrome/browser/views/tabs/hwnd_photobooth.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/views/download_started_animation.cc b/chrome/browser/views/download_started_animation.cc index c41cea8..42ce4b8 100644 --- a/chrome/browser/views/download_started_animation.cc +++ b/chrome/browser/views/download_started_animation.cc @@ -57,7 +57,7 @@ DownloadStartedAnimation::DownloadStartedAnimation(TabContents* tab_contents) popup_->Init(tab_contents_->GetNativeView(), rc, false); popup_->SetContentsView(this); Reposition(); - popup_->ShowWindow(SW_SHOWNOACTIVATE); + popup_->Show(); Start(); } diff --git a/chrome/browser/views/status_bubble_views.cc b/chrome/browser/views/status_bubble_views.cc index 816677d..f3ec662 100644 --- a/chrome/browser/views/status_bubble_views.cc +++ b/chrome/browser/views/status_bubble_views.cc @@ -478,7 +478,7 @@ void StatusBubbleViews::Init() { popup_->Init(frame_->GetHWND(), rc, false); popup_->SetContentsView(view_); Reposition(); - popup_->ShowWindow(SW_SHOWNOACTIVATE); + popup_->Show(); } } diff --git a/chrome/browser/views/tabs/hwnd_photobooth.cc b/chrome/browser/views/tabs/hwnd_photobooth.cc index 3cf5908..88fb24c 100644 --- a/chrome/browser/views/tabs/hwnd_photobooth.cc +++ b/chrome/browser/views/tabs/hwnd_photobooth.cc @@ -151,7 +151,7 @@ void HWNDPhotobooth::CreateCaptureWindow(HWND initial_hwnd) { capture_window_->Init(NULL, capture_bounds, false); // If the capture window isn't visible, blitting from the TabContents' // HWND's DC to the capture bitmap produces blankness. - capture_window_->ShowWindow(SW_SHOWNOACTIVATE); + capture_window_->Show(); SetLayeredWindowAttributes( capture_window_->GetHWND(), RGB(0xFF, 0xFF, 0xFF), 0xFF, LWA_ALPHA); |