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

Side by Side Diff: ui/aura/mus/window_tree_host_mus.cc

Issue 2657003004: aura-mus: Hook up PerformWindowMove(). (Closed)
Patch Set: Fold PerformWindowMove and CancelWindowMove. Created 3 years, 10 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/aura/mus/window_tree_host_mus.h ('k') | ui/aura/mus/window_tree_host_mus_delegate.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 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 #include "ui/aura/mus/window_tree_host_mus.h" 5 #include "ui/aura/mus/window_tree_host_mus.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "ui/aura/env.h" 8 #include "ui/aura/env.h"
9 #include "ui/aura/mus/input_method_mus.h" 9 #include "ui/aura/mus/input_method_mus.h"
10 #include "ui/aura/mus/window_port_mus.h" 10 #include "ui/aura/mus/window_port_mus.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } 150 }
151 151
152 void WindowTreeHostMus::StackAbove(Window* window) { 152 void WindowTreeHostMus::StackAbove(Window* window) {
153 delegate_->OnWindowTreeHostStackAbove(this, window); 153 delegate_->OnWindowTreeHostStackAbove(this, window);
154 } 154 }
155 155
156 void WindowTreeHostMus::StackAtTop() { 156 void WindowTreeHostMus::StackAtTop() {
157 delegate_->OnWindowTreeHostStackAtTop(this); 157 delegate_->OnWindowTreeHostStackAtTop(this);
158 } 158 }
159 159
160 void WindowTreeHostMus::PerformWindowMove(
161 ui::mojom::MoveLoopSource mus_source,
162 const gfx::Point& cursor_location,
163 const base::Callback<void(bool)>& callback) {
164 delegate_->OnWindowTreeHostPerformWindowMove(
165 this, mus_source, cursor_location, callback);
166 }
167
168 void WindowTreeHostMus::CancelWindowMove() {
169 delegate_->OnWindowTreeHostCancelWindowMove(this);
170 }
171
160 display::Display WindowTreeHostMus::GetDisplay() const { 172 display::Display WindowTreeHostMus::GetDisplay() const {
161 display::Display display; 173 display::Display display;
162 display::Screen::GetScreen()->GetDisplayWithDisplayId(display_id_, &display); 174 display::Screen::GetScreen()->GetDisplayWithDisplayId(display_id_, &display);
163 return display; 175 return display;
164 } 176 }
165 177
166 void WindowTreeHostMus::HideImpl() { 178 void WindowTreeHostMus::HideImpl() {
167 WindowTreeHostPlatform::HideImpl(); 179 WindowTreeHostPlatform::HideImpl();
168 window()->Hide(); 180 window()->Hide();
169 } 181 }
(...skipping 23 matching lines...) Expand all
193 void WindowTreeHostMus::OnCloseRequest() { 205 void WindowTreeHostMus::OnCloseRequest() {
194 OnHostCloseRequested(); 206 OnHostCloseRequested();
195 } 207 }
196 208
197 gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() { 209 gfx::ICCProfile WindowTreeHostMus::GetICCProfileForCurrentDisplay() {
198 // TODO: This should read the profile from mus. crbug.com/647510 210 // TODO: This should read the profile from mus. crbug.com/647510
199 return gfx::ICCProfile(); 211 return gfx::ICCProfile();
200 } 212 }
201 213
202 } // namespace aura 214 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.h ('k') | ui/aura/mus/window_tree_host_mus_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698