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

Side by Side Diff: ui/base/x/work_area_watcher_x.cc

Issue 10795024: ui: Forward declare DefaultSingletonTraits in header files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/base/x/work_area_watcher_x.h" 5 #include "ui/base/x/work_area_watcher_x.h"
6 6
7 #include "base/memory/singleton.h"
7 #include "ui/base/work_area_watcher_observer.h" 8 #include "ui/base/work_area_watcher_observer.h"
8 #include "ui/base/x/root_window_property_watcher_x.h" 9 #include "ui/base/x/root_window_property_watcher_x.h"
9 #include "ui/base/x/x11_util.h" 10 #include "ui/base/x/x11_util.h"
10 11
11 namespace ui { 12 namespace ui {
12 13
13 static const char* const kNetWorkArea = "_NET_WORKAREA"; 14 static const char* const kNetWorkArea = "_NET_WORKAREA";
14 15
15 // static 16 // static
16 WorkAreaWatcherX* WorkAreaWatcherX::GetInstance() { 17 WorkAreaWatcherX* WorkAreaWatcherX::GetInstance() {
(...skipping 26 matching lines...) Expand all
43 } 44 }
44 45
45 WorkAreaWatcherX::~WorkAreaWatcherX() { 46 WorkAreaWatcherX::~WorkAreaWatcherX() {
46 } 47 }
47 48
48 void WorkAreaWatcherX::NotifyWorkAreaChanged() { 49 void WorkAreaWatcherX::NotifyWorkAreaChanged() {
49 FOR_EACH_OBSERVER(WorkAreaWatcherObserver, observers_, WorkAreaChanged()); 50 FOR_EACH_OBSERVER(WorkAreaWatcherObserver, observers_, WorkAreaChanged());
50 } 51 }
51 52
52 } // namespace ui 53 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698