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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 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
« no previous file with comments | « ui/views/mus/input_method_mus_unittest.cc ('k') | ui/views/mus/screen_mus.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SCREEN_MUS_H_ 5 #ifndef UI_VIEWS_MUS_SCREEN_MUS_H_
6 #define UI_VIEWS_MUS_SCREEN_MUS_H_ 6 #define UI_VIEWS_MUS_SCREEN_MUS_H_
7 7
8 #include "mojo/public/cpp/bindings/binding.h" 8 #include "mojo/public/cpp/bindings/binding.h"
9 #include "services/ui/public/interfaces/display.mojom.h" 9 #include "services/ui/public/interfaces/display.mojom.h"
10 #include "ui/display/screen_base.h" 10 #include "ui/display/screen_base.h"
11 #include "ui/views/mus/mus_export.h" 11 #include "ui/views/mus/mus_export.h"
12 12
13 namespace shell { 13 namespace service_manager {
14 class Connector; 14 class Connector;
15 } 15 }
16 16
17 namespace views { 17 namespace views {
18 18
19 class ScreenMusDelegate; 19 class ScreenMusDelegate;
20 20
21 // Screen implementation backed by ui::mojom::DisplayManager. 21 // Screen implementation backed by ui::mojom::DisplayManager.
22 class VIEWS_MUS_EXPORT ScreenMus 22 class VIEWS_MUS_EXPORT ScreenMus
23 : public display::ScreenBase, 23 : public display::ScreenBase,
24 public NON_EXPORTED_BASE(ui::mojom::DisplayManagerObserver) { 24 public NON_EXPORTED_BASE(ui::mojom::DisplayManagerObserver) {
25 public: 25 public:
26 // |delegate| can be nullptr. 26 // |delegate| can be nullptr.
27 explicit ScreenMus(ScreenMusDelegate* delegate); 27 explicit ScreenMus(ScreenMusDelegate* delegate);
28 ~ScreenMus() override; 28 ~ScreenMus() override;
29 29
30 void Init(shell::Connector* connector); 30 void Init(service_manager::Connector* connector);
31 31
32 private: 32 private:
33 // display::Screen: 33 // display::Screen:
34 gfx::Point GetCursorScreenPoint() override; 34 gfx::Point GetCursorScreenPoint() override;
35 bool IsWindowUnderCursor(gfx::NativeWindow window) override; 35 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
36 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 36 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
37 37
38 // ui::mojom::DisplayManager: 38 // ui::mojom::DisplayManager:
39 void OnDisplays(mojo::Array<ui::mojom::WsDisplayPtr> ws_displays) override; 39 void OnDisplays(mojo::Array<ui::mojom::WsDisplayPtr> ws_displays) override;
40 void OnDisplaysChanged( 40 void OnDisplaysChanged(
41 mojo::Array<ui::mojom::WsDisplayPtr> ws_displays) override; 41 mojo::Array<ui::mojom::WsDisplayPtr> ws_displays) override;
42 void OnDisplayRemoved(int64_t id) override; 42 void OnDisplayRemoved(int64_t id) override;
43 43
44 ScreenMusDelegate* delegate_; // Can be nullptr. 44 ScreenMusDelegate* delegate_; // Can be nullptr.
45 ui::mojom::DisplayManagerPtr display_manager_; 45 ui::mojom::DisplayManagerPtr display_manager_;
46 mojo::Binding<ui::mojom::DisplayManagerObserver> 46 mojo::Binding<ui::mojom::DisplayManagerObserver>
47 display_manager_observer_binding_; 47 display_manager_observer_binding_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(ScreenMus); 49 DISALLOW_COPY_AND_ASSIGN(ScreenMus);
50 }; 50 };
51 51
52 } // namespace views 52 } // namespace views
53 53
54 #endif // UI_VIEWS_MUS_SCREEN_MUS_H_ 54 #endif // UI_VIEWS_MUS_SCREEN_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/input_method_mus_unittest.cc ('k') | ui/views/mus/screen_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698