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

Side by Side Diff: services/ui/public/cpp/window.h

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
« no previous file with comments | « services/ui/public/cpp/lib/window.cc ('k') | ui/views/mus/native_widget_mus.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 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 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 24 matching lines...) Expand all
35 class WindowTreeClientPrivate; 35 class WindowTreeClientPrivate;
36 36
37 namespace { 37 namespace {
38 class OrderChangedNotifier; 38 class OrderChangedNotifier;
39 } 39 }
40 40
41 // Defined in window_property.h (which we do not include) 41 // Defined in window_property.h (which we do not include)
42 template <typename T> 42 template <typename T>
43 struct WindowProperty; 43 struct WindowProperty;
44 44
45 extern const char UI_EXPORT kWindowForAcceleratedWidget[];
46
45 // Windows are owned by the WindowTreeClient. See WindowTreeClientDelegate for 47 // Windows are owned by the WindowTreeClient. See WindowTreeClientDelegate for
46 // details on ownership. 48 // details on ownership.
47 // 49 //
48 // TODO(beng): Right now, you'll have to implement a WindowObserver to track 50 // TODO(beng): Right now, you'll have to implement a WindowObserver to track
49 // destruction and NULL any pointers you have. 51 // destruction and NULL any pointers you have.
50 // Investigate some kind of smart pointer or weak pointer for these. 52 // Investigate some kind of smart pointer or weak pointer for these.
51 class UI_EXPORT Window { 53 class UI_EXPORT Window {
52 public: 54 public:
53 using Children = std::vector<Window*>; 55 using Children = std::vector<Window*>;
54 using EmbedCallback = base::Callback<void(bool)>; 56 using EmbedCallback = base::Callback<void(bool)>;
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 }; 367 };
366 368
367 std::map<const void*, Value> prop_map_; 369 std::map<const void*, Value> prop_map_;
368 370
369 DISALLOW_COPY_AND_ASSIGN(Window); 371 DISALLOW_COPY_AND_ASSIGN(Window);
370 }; 372 };
371 373
372 } // namespace ui 374 } // namespace ui
373 375
374 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 376 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/lib/window.cc ('k') | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698