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

Unified Diff: ui/aura/client/capture_client.cc

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, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/client/capture_client.h ('k') | ui/aura/client/capture_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/capture_client.cc
diff --git a/ui/aura/client/capture_client.cc b/ui/aura/client/capture_client.cc
index ec53fc272638d2bed0793e5adb3534138bd8a484..cbcabd7393fcbb1a6e4e86220d513141311e7005 100644
--- a/ui/aura/client/capture_client.cc
+++ b/ui/aura/client/capture_client.cc
@@ -15,17 +15,17 @@ namespace client {
DEFINE_WINDOW_PROPERTY_KEY(
CaptureClient*, kRootWindowCaptureClientKey, NULL);
-void SetCaptureClient(RootWindow* root_window, CaptureClient* client) {
+void SetCaptureClient(Window* root_window, CaptureClient* client) {
root_window->SetProperty(kRootWindowCaptureClientKey, client);
}
-CaptureClient* GetCaptureClient(RootWindow* root_window) {
+CaptureClient* GetCaptureClient(Window* root_window) {
return root_window ?
root_window->GetProperty(kRootWindowCaptureClientKey) : NULL;
}
Window* GetCaptureWindow(Window* window) {
- RootWindow* root_window = window->GetRootWindow();
+ Window* root_window = window->GetRootWindow();
if (!root_window)
return NULL;
CaptureClient* capture_client = GetCaptureClient(root_window);
« no previous file with comments | « ui/aura/client/capture_client.h ('k') | ui/aura/client/capture_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698