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

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

Issue 2445163002: Make aura work with mus (Closed)
Patch Set: NON_EXPORTED_BASE_CLASS Created 4 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 unified diff | Download patch
« no previous file with comments | « ui/aura/window_observer.h ('k') | ui/views/mus/input_method_mus.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/aura/window_observer.h" 5 #include "ui/aura/window_observer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 9
10 namespace aura { 10 namespace aura {
11 11
12 WindowObserver::WindowObserver() : observing_(0) { 12 WindowObserver::WindowObserver() : observing_(0) {
13 } 13 }
14 14
15 WindowObserver::~WindowObserver() { 15 WindowObserver::~WindowObserver() {
16 CHECK_EQ(0, observing_); 16 CHECK_EQ(0, observing_);
17 } 17 }
18 18
19 void WindowObserver::OnObservingWindow(aura::Window* window) { 19 void WindowObserver::OnObservingWindow(aura::Window* window) {
20 if (!window->HasObserver(this)) 20 if (!window->HasObserver(this))
21 observing_++; 21 observing_++;
22 } 22 }
23 23
24 void WindowObserver::OnUnobservingWindow(aura::Window* window) { 24 void WindowObserver::OnUnobservingWindow(aura::Window* window) {
25 if (window->HasObserver(this)) 25 if (window->HasObserver(this))
26 observing_--; 26 observing_--;
27 } 27 }
28 28
29 void WindowObserver::OnEmbeddedAppDisconnected(Window* window) {}
30
29 } // namespace aura 31 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/window_observer.h ('k') | ui/views/mus/input_method_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698