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

Side by Side Diff: components/exo/wm_helper_mus.cc

Issue 2780623002: exo: Fix multi-display hardware cursor (Closed)
Patch Set: Fix accessibility test Created 3 years, 7 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
« components/exo/pointer.cc ('K') | « components/exo/wm_helper_mus.h ('k') | no next file » | 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 #include "components/exo/wm_helper_mus.h" 5 #include "components/exo/wm_helper_mus.h"
6 6
7 #include "ui/aura/client/focus_client.h" 7 #include "ui/aura/client/focus_client.h"
8 #include "ui/aura/env.h" 8 #include "ui/aura/env.h"
9 #include "ui/aura/mus/focus_synchronizer.h" 9 #include "ui/aura/mus/focus_synchronizer.h"
10 #include "ui/aura/mus/window_tree_client.h" 10 #include "ui/aura/mus/window_tree_client.h"
(...skipping 19 matching lines...) Expand all
30 active_focus_client_->RemoveObserver(this); 30 active_focus_client_->RemoveObserver(this);
31 views::MusClient::Get() 31 views::MusClient::Get()
32 ->window_tree_client() 32 ->window_tree_client()
33 ->focus_synchronizer() 33 ->focus_synchronizer()
34 ->RemoveObserver(this); 34 ->RemoveObserver(this);
35 } 35 }
36 36
37 //////////////////////////////////////////////////////////////////////////////// 37 ////////////////////////////////////////////////////////////////////////////////
38 // WMHelperMus, private: 38 // WMHelperMus, private:
39 39
40 const display::ManagedDisplayInfo WMHelperMus::GetDisplayInfo( 40 const display::ManagedDisplayInfo& WMHelperMus::GetDisplayInfo(
41 int64_t display_id) const { 41 int64_t display_id) const {
42 // TODO(penghuang): Return real display info when it is supported in mus. 42 // TODO(penghuang): Return real display info when it is supported in mus.
43 return display::ManagedDisplayInfo(display_id, "", false); 43 static const display::ManagedDisplayInfo info;
44 return info;
44 } 45 }
45 46
46 aura::Window* WMHelperMus::GetContainer(int container_id) { 47 aura::Window* WMHelperMus::GetContainer(int64_t display_id, int container_id) {
47 NOTIMPLEMENTED(); 48 NOTIMPLEMENTED();
48 return nullptr; 49 return nullptr;
49 } 50 }
50 51
51 aura::Window* WMHelperMus::GetActiveWindow() const { 52 aura::Window* WMHelperMus::GetActiveWindow() const {
52 return active_window_; 53 return active_window_;
53 } 54 }
54 55
55 aura::Window* WMHelperMus::GetFocusedWindow() const { 56 aura::Window* WMHelperMus::GetFocusedWindow() const {
56 return focused_window_; 57 return focused_window_;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 NotifyWindowFocused(focused_window_, lost_focus); 140 NotifyWindowFocused(focused_window_, lost_focus);
140 } 141 }
141 142
142 aura::client::ActivationClient* WMHelperMus::GetActivationClient() { 143 aura::client::ActivationClient* WMHelperMus::GetActivationClient() {
143 return root_with_active_focus_client_ 144 return root_with_active_focus_client_
144 ? aura::client::GetActivationClient(root_with_active_focus_client_) 145 ? aura::client::GetActivationClient(root_with_active_focus_client_)
145 : nullptr; 146 : nullptr;
146 } 147 }
147 148
148 } // namespace exo 149 } // namespace exo
OLDNEW
« components/exo/pointer.cc ('K') | « components/exo/wm_helper_mus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698