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

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 5906001: Makes linux honor instant_is_active when instant temporarily hides. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: true Created 10 years 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/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 7769d34661382507d1813da9d0f4815bd9416f56..ffa67b381aa9849bfe69d71764bb15dbec0d7a94 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -799,11 +799,11 @@ void TabContents::DidBecomeSelected() {
last_selected_time_ = base::TimeTicks::Now();
}
-void TabContents::FadeForInstant() {
+void TabContents::FadeForInstant(bool animate) {
RenderWidgetHostView* rwhv = GetRenderWidgetHostView();
SkColor whitish = SkColorSetARGB(192, 255, 255, 255);
if (rwhv)
- rwhv->SetVisuallyDeemphasized(&whitish, true);
+ rwhv->SetVisuallyDeemphasized(&whitish, animate);
}
void TabContents::CancelInstantFade() {
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698