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

Unified Diff: ash/wm/frame_painter.h

Issue 10192001: ash: Fix transparency glitches in window header (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « no previous file | ash/wm/frame_painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/frame_painter.h
diff --git a/ash/wm/frame_painter.h b/ash/wm/frame_painter.h
index 31a52bea9ab2bea92c57d627e34cbf30e0af96b9..c61102e04a0e59449874fc187be112cd8ca918d9 100644
--- a/ash/wm/frame_painter.h
+++ b/ash/wm/frame_painter.h
@@ -110,6 +110,8 @@ class ASH_EXPORT FramePainter : public aura::WindowObserver,
virtual void OnWindowPropertyChanged(aura::Window* window,
const void* key,
intptr_t old) OVERRIDE;
+ virtual void OnWindowVisibilityChanged(aura::Window* window,
+ bool visible) OVERRIDE;
virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
// Overridden from ui::AnimationDelegate
@@ -133,6 +135,11 @@ class ASH_EXPORT FramePainter : public aura::WindowObserver,
// window header.
static bool UseSoloWindowHeader();
+ // Schedules a paint for the window header of the solo window. Invoke this
+ // when another window is hidden or destroyed to force the transparency of
+ // the now-solo window to update.
+ static void SchedulePaintForSoloWindow();
+
static std::set<FramePainter*>* instances_;
// Not owned
« no previous file with comments | « no previous file | ash/wm/frame_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698