| 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 #ifndef UI_WM_CORE_CAPTURE_CONTROLLER_H_ |   5 #ifndef UI_WM_CORE_CAPTURE_CONTROLLER_H_ | 
|   6 #define UI_WM_CORE_CAPTURE_CONTROLLER_H_ |   6 #define UI_WM_CORE_CAPTURE_CONTROLLER_H_ | 
|   7  |   7  | 
|   8 #include <set> |   8 #include <set> | 
|   9  |   9  | 
|  10 #include "base/basictypes.h" |  10 #include "base/basictypes.h" | 
|  11 #include "base/compiler_specific.h" |  11 #include "base/compiler_specific.h" | 
|  12 #include "ui/aura/client/capture_client.h" |  12 #include "ui/aura/client/capture_client.h" | 
|  13 #include "ui/aura/window_observer.h" |  13 #include "ui/aura/window_observer.h" | 
|  14 #include "ui/wm/core/wm_core_export.h" |  14 #include "ui/wm/core/wm_core_export.h" | 
|  15  |  15  | 
|  16 namespace views { |  16 namespace wm { | 
|  17 namespace corewm { |  | 
|  18  |  17  | 
|  19 // Internal CaptureClient implementation. See ScopedCaptureClient for details. |  18 // Internal CaptureClient implementation. See ScopedCaptureClient for details. | 
|  20 class WM_CORE_EXPORT CaptureController : public aura::client::CaptureClient { |  19 class WM_CORE_EXPORT CaptureController : public aura::client::CaptureClient { | 
|  21  public: |  20  public: | 
|  22   // Adds |root| to the list of RootWindows notified when capture changes. |  21   // Adds |root| to the list of RootWindows notified when capture changes. | 
|  23   void Attach(aura::Window* root); |  22   void Attach(aura::Window* root); | 
|  24  |  23  | 
|  25   // Removes |root| from the list of RootWindows notified when capture changes. |  24   // Removes |root| from the list of RootWindows notified when capture changes. | 
|  26   void Detach(aura::Window* root); |  25   void Detach(aura::Window* root); | 
|  27  |  26  | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  75  |  74  | 
|  76   // The single CaptureController instance. |  75   // The single CaptureController instance. | 
|  77   static CaptureController* capture_controller_; |  76   static CaptureController* capture_controller_; | 
|  78  |  77  | 
|  79   // RootWindow this ScopedCaptureClient was create for. |  78   // RootWindow this ScopedCaptureClient was create for. | 
|  80   aura::Window* root_window_; |  79   aura::Window* root_window_; | 
|  81  |  80  | 
|  82   DISALLOW_COPY_AND_ASSIGN(ScopedCaptureClient); |  81   DISALLOW_COPY_AND_ASSIGN(ScopedCaptureClient); | 
|  83 }; |  82 }; | 
|  84  |  83  | 
|  85 }  // namespace corewm |  84 }  // namespace wm | 
|  86 }  // namespace views |  | 
|  87  |  85  | 
|  88 #endif  // UI_WM_CORE_CAPTURE_CONTROLLER_H_ |  86 #endif  // UI_WM_CORE_CAPTURE_CONTROLLER_H_ | 
| OLD | NEW |