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

Side by Side Diff: services/ui/public/cpp/window_manager_delegate.h

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng nits Created 4 years, 5 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 | « services/ui/public/cpp/window.h ('k') | services/ui/public/cpp/window_tree_client.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 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "services/ui/public/interfaces/cursor.mojom.h" 16 #include "services/ui/public/interfaces/cursor.mojom.h"
17 #include "services/ui/public/interfaces/event_matcher.mojom.h" 17 #include "services/ui/public/interfaces/event_matcher.mojom.h"
18 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" 18 #include "services/ui/public/interfaces/window_manager_constants.mojom.h"
19 #include "services/ui/public/interfaces/window_tree_constants.mojom.h"
19 #include "ui/events/mojo/event.mojom.h" 20 #include "ui/events/mojo/event.mojom.h"
20 21
21 namespace display { 22 namespace display {
22 class Display; 23 class Display;
23 } 24 }
24 25
25 namespace gfx { 26 namespace gfx {
26 class Insets; 27 class Insets;
27 class Rect; 28 class Rect;
28 class Vector2d; 29 class Vector2d;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 const std::set<Window*>& client_windows, 101 const std::set<Window*>& client_windows,
101 bool janky) = 0; 102 bool janky) = 0;
102 103
103 // Called when a display is added. |window| is the root of the window tree for 104 // Called when a display is added. |window| is the root of the window tree for
104 // the specified display. 105 // the specified display.
105 virtual void OnWmNewDisplay(Window* window, 106 virtual void OnWmNewDisplay(Window* window,
106 const display::Display& display) = 0; 107 const display::Display& display) = 0;
107 108
108 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0; 109 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0;
109 110
111 virtual void OnWmPerformMoveLoop(
112 Window* window,
113 ui::mojom::MoveLoopSource source,
114 const gfx::Point& cursor_location,
115 const base::Callback<void(bool)>& on_done) = 0;
116
117 virtual void OnWmCancelMoveLoop(Window* window) = 0;
118
110 protected: 119 protected:
111 virtual ~WindowManagerDelegate() {} 120 virtual ~WindowManagerDelegate() {}
112 }; 121 };
113 122
114 } // namespace ui 123 } // namespace ui
115 124
116 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 125 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window.h ('k') | services/ui/public/cpp/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698