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

Unified Diff: views/window/non_client_view.h

Issue 303012: Fix bubbles deactivating the opaque frame.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | « chrome/browser/views/frame/opaque_browser_frame_view.cc ('k') | views/window/non_client_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/non_client_view.h
===================================================================
--- views/window/non_client_view.h (revision 29537)
+++ views/window/non_client_view.h (working copy)
@@ -31,6 +31,9 @@
// frame border.
static const int kClientEdgeThickness;
+ // Prevent the frame view from painting its inactive state. Prevents a related
+ // window from causing its owner to appear deactivated. Used for windows like
+ // bubbles.
void DisableInactiveRendering(bool disable) {
paint_as_active_ = disable;
if (!paint_as_active_)
@@ -81,8 +84,10 @@
int resize_corner_width,
bool can_resize);
- // Accessor for paint_as_active_.
- bool paint_as_active() const { return paint_as_active_; }
+ // Used to determine if the frame should be painted as active. Keyed off the
+ // window's actual active state and the override, see
+ // DisableInactiveRendering() above.
+ bool ShouldPaintAsActive() const;
private:
// True when the non-client view should always be rendered as if the window
« no previous file with comments | « chrome/browser/views/frame/opaque_browser_frame_view.cc ('k') | views/window/non_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698