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

Side by Side Diff: services/ui/public/cpp/lib/window.cc

Issue 2188813003: content: Remove views dependency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus-public-cpp-component
Patch Set: . Created 4 years, 4 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/ui/public/cpp/window.h" 5 #include "services/ui/public/cpp/window.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 158 }
159 159
160 bool OwnsWindowOrIsRoot(Window* window) { 160 bool OwnsWindowOrIsRoot(Window* window) {
161 return OwnsWindow(window->window_tree(), window) || IsClientRoot(window); 161 return OwnsWindow(window->window_tree(), window) || IsClientRoot(window);
162 } 162 }
163 163
164 void EmptyEmbedCallback(bool result) {} 164 void EmptyEmbedCallback(bool result) {}
165 165
166 } // namespace 166 } // namespace
167 167
168 const char kWindowForAcceleratedWidget[] = "__UI_WINDOW_ACCELERATED_WIDGET__";
169
168 //////////////////////////////////////////////////////////////////////////////// 170 ////////////////////////////////////////////////////////////////////////////////
169 // Window, public: 171 // Window, public:
170 172
171 void Window::Destroy() { 173 void Window::Destroy() {
172 if (!OwnsWindowOrIsRoot(this)) 174 if (!OwnsWindowOrIsRoot(this))
173 return; 175 return;
174 176
175 if (client_) 177 if (client_)
176 client_->DestroyWindow(this); 178 client_->DestroyWindow(this);
177 while (!children_.empty()) { 179 while (!children_.empty()) {
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 notifier->NotifyWindowReordered(); 902 notifier->NotifyWindowReordered();
901 903
902 return true; 904 return true;
903 } 905 }
904 906
905 // static 907 // static
906 Window** Window::GetStackingTarget(Window* window) { 908 Window** Window::GetStackingTarget(Window* window) {
907 return &window->stacking_target_; 909 return &window->stacking_target_;
908 } 910 }
909 } // namespace ui 911 } // namespace ui
OLDNEW
« no previous file with comments | « content/browser/compositor/mus_browser_compositor_output_surface.cc ('k') | services/ui/public/cpp/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698