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

Side by Side Diff: ui/aura/client/capture_delegate.h

Issue 38423002: Make aura::clients take Window instead of RootWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/client/capture_client.cc ('k') | ui/aura/client/default_activation_client.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 (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_AURA_CLIENT_CAPTURE_DELEGATE_H_ 5 #ifndef UI_AURA_CLIENT_CAPTURE_DELEGATE_H_
6 #define UI_AURA_CLIENT_CAPTURE_DELEGATE_H_ 6 #define UI_AURA_CLIENT_CAPTURE_DELEGATE_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 9
10 namespace aura { 10 namespace aura {
11 class Window; 11 class Window;
12 namespace client { 12 namespace client {
13 13
14 // This interface provides API to change the RootWindow's capture state 14 // This interface provides API to change the root Window's capture state without
15 // without exposing them as RootWindow API. 15 // exposing them as RootWindow API.
16 class AURA_EXPORT CaptureDelegate { 16 class AURA_EXPORT CaptureDelegate {
17 public: 17 public:
18 // Called when a capture is set on the |new_capture| which is owned by 18 // Called when a capture is set on the |new_capture| which is owned by
19 // this root window, and/or a capture is released on the |old_capture| 19 // this root window, and/or a capture is released on the |old_capture|
20 // which is owned by this root window. 20 // which is owned by this root window.
21 virtual void UpdateCapture(aura::Window* old_capture, 21 virtual void UpdateCapture(aura::Window* old_capture,
22 aura::Window* new_capture) = 0; 22 aura::Window* new_capture) = 0;
23 // Sets/Release a native capture on host windows. 23 // Sets/Release a native capture on host windows.
24 virtual void SetNativeCapture() = 0; 24 virtual void SetNativeCapture() = 0;
25 virtual void ReleaseNativeCapture() = 0; 25 virtual void ReleaseNativeCapture() = 0;
26 26
27 protected: 27 protected:
28 virtual ~CaptureDelegate() {} 28 virtual ~CaptureDelegate() {}
29 }; 29 };
30 30
31 } // namespace client 31 } // namespace client
32 } // namespace aura 32 } // namespace aura
33 33
34 #endif // UI_AURA_CLIENT_CAPTURE_DELEGATE_H_ 34 #endif // UI_AURA_CLIENT_CAPTURE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/client/capture_client.cc ('k') | ui/aura/client/default_activation_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698