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

Side by Side Diff: services/window_manager/capture_controller.cc

Issue 1391243003: Move //mojo/services/X/public/... to //mojo/services/X/... (part 4). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_3-x-no_public_2-x-no_public_1
Patch Set: copyright header Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "services/window_manager/capture_controller.h" 5 #include "services/window_manager/capture_controller.h"
6 6
7 #include "mojo/services/view_manager/public/cpp/view_property.h" 7 #include "mojo/services/view_manager/cpp/view_property.h"
8 #include "mojo/services/view_manager/public/cpp/view_tracker.h" 8 #include "mojo/services/view_manager/cpp/view_tracker.h"
9 #include "services/window_manager/capture_controller_observer.h" 9 #include "services/window_manager/capture_controller_observer.h"
10 10
11 DECLARE_VIEW_PROPERTY_TYPE(window_manager::CaptureController*); 11 DECLARE_VIEW_PROPERTY_TYPE(window_manager::CaptureController*);
12 12
13 namespace window_manager { 13 namespace window_manager {
14 14
15 namespace { 15 namespace {
16 DEFINE_VIEW_PROPERTY_KEY(CaptureController*, 16 DEFINE_VIEW_PROPERTY_KEY(CaptureController*,
17 kRootViewCaptureController, 17 kRootViewCaptureController,
18 nullptr); 18 nullptr);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 mojo::View* GetCaptureView(mojo::View* view) { 95 mojo::View* GetCaptureView(mojo::View* view) {
96 mojo::View* root = view->GetRoot(); 96 mojo::View* root = view->GetRoot();
97 if (!root) 97 if (!root)
98 return nullptr; 98 return nullptr;
99 CaptureController* controller = GetCaptureController(root); 99 CaptureController* controller = GetCaptureController(root);
100 return controller ? controller->GetCapture() : nullptr; 100 return controller ? controller->GetCapture() : nullptr;
101 } 101 }
102 102
103 } // namespace window_manager 103 } // namespace window_manager
OLDNEW
« no previous file with comments | « services/window_manager/capture_controller.h ('k') | services/window_manager/focus_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698