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

Unified Diff: ui/aura/window.cc

Issue 8289022: Wires keeping the launcher up to date with the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 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/chrome_browser.gypi ('k') | ui/aura/window_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index d2735184b9c53690a14f18cb429355d01a4e27ab..a17c7e70be5c0d3245f654230d177b920d365f13 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -377,6 +377,9 @@ internal::RootWindow* Window::GetRoot() {
}
void Window::SetVisible(bool visible) {
+ if (visible == layer_->visible())
+ return; // No change.
+
bool was_visible = IsVisible();
layer_->SetVisible(visible);
bool is_visible = IsVisible();
@@ -385,6 +388,8 @@ void Window::SetVisible(bool visible) {
if (delegate_)
delegate_->OnWindowVisibilityChanged(is_visible);
}
+ FOR_EACH_OBSERVER(WindowObserver, observers_,
+ OnWindowVisibilityChanged(this, is_visible));
}
void Window::SchedulePaint() {
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ui/aura/window_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698