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

Side by Side Diff: components/mus/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: General patch cleanup. Created 4 years, 6 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
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 COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 mojom::EventMatcherPtr event_matcher, 49 mojom::EventMatcherPtr event_matcher,
50 const base::Callback<void(bool)>& callback) = 0; 50 const base::Callback<void(bool)>& callback) = 0;
51 virtual void RemoveAccelerator(uint32_t id) = 0; 51 virtual void RemoveAccelerator(uint32_t id) = 0;
52 virtual void AddActivationParent(Window* window) = 0; 52 virtual void AddActivationParent(Window* window) = 0;
53 virtual void RemoveActivationParent(Window* window) = 0; 53 virtual void RemoveActivationParent(Window* window) = 0;
54 virtual void ActivateNextWindow() = 0; 54 virtual void ActivateNextWindow() = 0;
55 virtual void SetUnderlaySurfaceOffsetAndExtendedHitArea( 55 virtual void SetUnderlaySurfaceOffsetAndExtendedHitArea(
56 Window* window, 56 Window* window,
57 const gfx::Vector2d& offset, 57 const gfx::Vector2d& offset,
58 const gfx::Insets& hit_area) = 0; 58 const gfx::Insets& hit_area) = 0;
59 virtual void OnWmMoveLoopCompleted(uint32_t change_id,
60 uint32_t window_id,
61 bool completed) = 0;
59 62
60 protected: 63 protected:
61 virtual ~WindowManagerClient() {} 64 virtual ~WindowManagerClient() {}
62 }; 65 };
63 66
64 // Used by clients implementing a window manager. 67 // Used by clients implementing a window manager.
65 // TODO(sky): this should be called WindowManager, but that's rather confusing 68 // TODO(sky): this should be called WindowManager, but that's rather confusing
66 // currently. 69 // currently.
67 class WindowManagerDelegate { 70 class WindowManagerDelegate {
68 public: 71 public:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 const std::set<Window*>& client_windows, 103 const std::set<Window*>& client_windows,
101 bool janky) = 0; 104 bool janky) = 0;
102 105
103 // Called when a display is added. |window| is the root of the window tree for 106 // Called when a display is added. |window| is the root of the window tree for
104 // the specified display. 107 // the specified display.
105 virtual void OnWmNewDisplay(Window* window, 108 virtual void OnWmNewDisplay(Window* window,
106 const display::Display& display) = 0; 109 const display::Display& display) = 0;
107 110
108 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0; 111 virtual void OnAccelerator(uint32_t id, const ui::Event& event) = 0;
109 112
113 virtual void OnWmPerformMoveLoop(uint32_t change_id,
114 uint32_t window_id,
115 const gfx::Point& cursor_location) = 0;
116
117 virtual void OnWmCancelMoveLoop(uint32_t window_id) = 0;
118
110 protected: 119 protected:
111 virtual ~WindowManagerDelegate() {} 120 virtual ~WindowManagerDelegate() {}
112 }; 121 };
113 122
114 } // namespace mus 123 } // namespace mus
115 124
116 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_ 125 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698