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

Unified Diff: chrome/browser/views/extensions/extension_popup.cc

Issue 345043: disable inactive rendering for ExtensionPopup (Closed)
Patch Set: Created 11 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/extensions/extension_popup.cc
diff --git a/chrome/browser/views/extensions/extension_popup.cc b/chrome/browser/views/extensions/extension_popup.cc
index 84e1f429f6955b4f045fdf89714b904a7aba6f0f..a84176eae0f0b9b644614dc67caa0473d45a5b8e 100644
--- a/chrome/browser/views/extensions/extension_popup.cc
+++ b/chrome/browser/views/extensions/extension_popup.cc
@@ -14,6 +14,7 @@
#include "chrome/common/notification_source.h"
#include "chrome/common/notification_type.h"
#include "views/widget/root_view.h"
+#include "views/window/window.h"
using views::Widget;
@@ -65,6 +66,10 @@ void ExtensionPopup::Show() {
if (visible())
return;
+#if defined(OS_WIN)
+ frame_->GetWindow()->DisableInactiveRendering();
+#endif
+
ResizeToView();
// Show the border first, then the popup overlaid on top.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698