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

Unified Diff: chrome/browser/views/frame/browser_frame_win.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 | « no previous file | chrome/browser/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/browser_frame_win.cc
===================================================================
--- chrome/browser/views/frame/browser_frame_win.cc (revision 22523)
+++ chrome/browser/views/frame/browser_frame_win.cc (working copy)
@@ -51,6 +51,10 @@
GetNonClientView()->SetFrameView(CreateFrameViewForWindow());
// Don't focus anything on creation, selecting a tab will set the focus.
set_focus_on_creation(false);
+ // Force popups and apps under Vista to have a nonthemed frame.
+ if (win_util::ShouldUseVistaFrame() &&
+ !browser_view_->IsBrowserTypeNormal())
+ GetNonClientView()->ForceAeroGlassFrame();
}
void BrowserFrameWin::Init() {
@@ -298,7 +302,9 @@
}
views::NonClientFrameView* BrowserFrameWin::CreateFrameViewForWindow() {
- if (GetThemeProvider()->ShouldUseNativeFrame())
+ if (GetThemeProvider()->ShouldUseNativeFrame() ||
+ (!browser_view_->IsBrowserTypeNormal() &&
+ win_util::ShouldUseVistaFrame()))
browser_frame_view_ = new GlassBrowserFrameView(this, browser_view_);
else
browser_frame_view_ = new OpaqueBrowserFrameView(this, browser_view_);
« no previous file with comments | « no previous file | chrome/browser/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698