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

Side by Side Diff: ui/aura/window_observer.cc

Issue 252963003: Revert of Adds back some debugging code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/window_observer.h ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/aura/window_observer.h"
6
7 #include "base/logging.h"
8 #include "ui/aura/window.h"
9
10 namespace aura {
11
12 WindowObserver::WindowObserver() : observing_(0) {
13 }
14
15 WindowObserver::~WindowObserver() {
16 // TODO(flackr): Remove this check and observing_ counter when the cause of
17 // http://crbug.com/365364 is discovered.
18 CHECK_EQ(0, observing_);
19 }
20
21 void WindowObserver::OnObservingWindow(aura::Window* window) {
22 if (!window->HasObserver(this))
23 observing_++;
24 }
25
26 void WindowObserver::OnUnobservingWindow(aura::Window* window) {
27 if (window->HasObserver(this))
28 observing_--;
29 }
30
31 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/window_observer.h ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698