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

Side by Side Diff: ui/views/mus/window_manager_connection.h

Issue 2011833003: Implement ui::ClipboardMus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast_linux. Created 4 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ 5 #ifndef UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_
6 #define UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ 6 #define UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "components/mus/public/cpp/window_tree_client_delegate.h" 14 #include "components/mus/public/cpp/window_tree_client_delegate.h"
15 #include "services/shell/public/cpp/identity.h" 15 #include "services/shell/public/cpp/identity.h"
16 #include "ui/views/mus/mus_export.h" 16 #include "ui/views/mus/mus_export.h"
17 #include "ui/views/mus/screen_mus_delegate.h" 17 #include "ui/views/mus/screen_mus_delegate.h"
18 #include "ui/views/widget/widget.h" 18 #include "ui/views/widget/widget.h"
19 19
20 namespace shell { 20 namespace shell {
21 class Connector; 21 class Connector;
22 } 22 }
23 23
24 namespace views { 24 namespace views {
25 class ClipboardMus;
25 class NativeWidget; 26 class NativeWidget;
26 class PointerWatcher; 27 class PointerWatcher;
27 class ScreenMus; 28 class ScreenMus;
28 namespace internal { 29 namespace internal {
29 class NativeWidgetDelegate; 30 class NativeWidgetDelegate;
30 } 31 }
31 32
32 // Provides configuration to mus in views. This consists of the following: 33 // Provides configuration to mus in views. This consists of the following:
33 // . Provides a Screen implementation backed by mus. 34 // . Provides a Screen implementation backed by mus.
35 // . Provides a Clipboard implementation backed by mus.
34 // . Creates and owns a WindowTreeClient. 36 // . Creates and owns a WindowTreeClient.
35 // . Registers itself as the factory for creating NativeWidgets so that a 37 // . Registers itself as the factory for creating NativeWidgets so that a
36 // NativeWidgetMus is created. 38 // NativeWidgetMus is created.
37 // WindowManagerConnection is a singleton and should be created early on. 39 // WindowManagerConnection is a singleton and should be created early on.
38 // 40 //
39 // TODO(sky): this name is now totally confusing. Come up with a better one. 41 // TODO(sky): this name is now totally confusing. Come up with a better one.
40 class VIEWS_MUS_EXPORT WindowManagerConnection 42 class VIEWS_MUS_EXPORT WindowManagerConnection
41 : public NON_EXPORTED_BASE(mus::WindowTreeClientDelegate), 43 : public NON_EXPORTED_BASE(mus::WindowTreeClientDelegate),
42 public ScreenMusDelegate { 44 public ScreenMusDelegate {
43 public: 45 public:
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Must be empty on destruction. 90 // Must be empty on destruction.
89 base::ObserverList<PointerWatcher, true> pointer_watchers_; 91 base::ObserverList<PointerWatcher, true> pointer_watchers_;
90 bool created_device_data_manager_; 92 bool created_device_data_manager_;
91 93
92 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection); 94 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection);
93 }; 95 };
94 96
95 } // namespace views 97 } // namespace views
96 98
97 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ 99 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698