| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |