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

Side by Side Diff: ui/aura/mus/window_tree_host_mus_delegate.h

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.cc ('k') | ui/views/mus/desktop_window_tree_host_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_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_
6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Called to stack the native window above the native window of |window|. 49 // Called to stack the native window above the native window of |window|.
50 virtual void OnWindowTreeHostStackAbove( 50 virtual void OnWindowTreeHostStackAbove(
51 WindowTreeHostMus* window_tree_host, 51 WindowTreeHostMus* window_tree_host,
52 Window* window) = 0; 52 Window* window) = 0;
53 53
54 // Called to stack the native window above other native windows. 54 // Called to stack the native window above other native windows.
55 virtual void OnWindowTreeHostStackAtTop( 55 virtual void OnWindowTreeHostStackAtTop(
56 WindowTreeHostMus* window_tree_host) = 0; 56 WindowTreeHostMus* window_tree_host) = 0;
57 57
58 // Called to start a move loop, where the window manager will take over
59 // moving a window during a drag.
60 virtual void OnWindowTreeHostPerformWindowMove(
61 WindowTreeHostMus* window_tree_host,
62 ui::mojom::MoveLoopSource mus_source,
63 const gfx::Point& cursor_location,
64 const base::Callback<void(bool)>& callback) = 0;
65
66 // Called to cancel a move loop.
67 virtual void OnWindowTreeHostCancelWindowMove(
68 WindowTreeHostMus* window_tree_host) = 0;
69
58 // Called when a WindowTreeHostMus is created without a WindowPort. 70 // Called when a WindowTreeHostMus is created without a WindowPort.
59 // TODO: this should take an unordered_map, see http://crbug.com/670515. 71 // TODO: this should take an unordered_map, see http://crbug.com/670515.
60 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel( 72 virtual std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel(
61 const std::map<std::string, std::vector<uint8_t>>* properties) = 0; 73 const std::map<std::string, std::vector<uint8_t>>* properties) = 0;
62 74
63 // Called from WindowTreeHostMus's constructor once the Window has been 75 // Called from WindowTreeHostMus's constructor once the Window has been
64 // created. 76 // created.
65 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0; 77 virtual void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) = 0;
66 78
67 protected: 79 protected:
68 virtual ~WindowTreeHostMusDelegate() {} 80 virtual ~WindowTreeHostMusDelegate() {}
69 }; 81 };
70 82
71 } // namespace aura 83 } // namespace aura
72 84
73 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_ 85 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698