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

Unified Diff: views/window/non_client_view.cc

Issue 159871: Ensure that popup windows are not themed.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « views/window/non_client_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/non_client_view.cc
===================================================================
--- views/window/non_client_view.cc (revision 22523)
+++ views/window/non_client_view.cc (working copy)
@@ -32,7 +32,8 @@
NonClientView::NonClientView(Window* frame)
: frame_(frame),
- client_view_(NULL) {
+ client_view_(NULL),
+ force_aero_glass_frame_(false) {
}
NonClientView::~NonClientView() {
@@ -68,6 +69,8 @@
}
bool NonClientView::UseNativeFrame() const {
+ if (force_aero_glass_frame_)
+ return true;
// The frame view may always require a custom frame, e.g. Constrained Windows.
if (frame_view_.get() && frame_view_->AlwaysUseCustomFrame())
return false;
@@ -201,6 +204,10 @@
accessible_name_ = name;
}
+void NonClientView::ForceAeroGlassFrame() {
+ force_aero_glass_frame_ = true;
+}
+
////////////////////////////////////////////////////////////////////////////////
// NonClientFrameView, View overrides:
« no previous file with comments | « views/window/non_client_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698