| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/public/browser/desktop_media_id.h" | 5 #include "content/public/browser/desktop_media_id.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/id_map.h" | 11 #include "base/id_map.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 | 17 |
| 18 #if defined(USE_AURA) | 18 #if defined(USE_AURA) |
| 19 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" // nogncheck |
| 20 #include "ui/aura/window_observer.h" | 20 #include "ui/aura/window_observer.h" // nogncheck |
| 21 #endif // defined(USE_AURA) | 21 #endif // defined(USE_AURA) |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 #if defined(USE_AURA) | 25 #if defined(USE_AURA) |
| 26 | 26 |
| 27 class AuraWindowRegistry : public aura::WindowObserver { | 27 class AuraWindowRegistry : public aura::WindowObserver { |
| 28 public: | 28 public: |
| 29 static AuraWindowRegistry* GetInstance() { | 29 static AuraWindowRegistry* GetInstance() { |
| 30 return base::Singleton<AuraWindowRegistry>::get(); | 30 return base::Singleton<AuraWindowRegistry>::get(); |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 #if defined(USE_AURA) | 191 #if defined(USE_AURA) |
| 192 prefix.append(":"); | 192 prefix.append(":"); |
| 193 prefix.append(base::Int64ToString(aura_id)); | 193 prefix.append(base::Int64ToString(aura_id)); |
| 194 #endif // defined(USE_AURA) | 194 #endif // defined(USE_AURA) |
| 195 | 195 |
| 196 return prefix; | 196 return prefix; |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace content | 199 } // namespace content |
| OLD | NEW |