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

Side by Side Diff: services/ui/public/cpp/window.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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // NOTE: callback is run synchronously if Embed() is not allowed on this 215 // NOTE: callback is run synchronously if Embed() is not allowed on this
216 // Window. 216 // Window.
217 void Embed(ui::mojom::WindowTreeClientPtr client, 217 void Embed(ui::mojom::WindowTreeClientPtr client,
218 const EmbedCallback& callback, 218 const EmbedCallback& callback,
219 uint32_t flags = 0); 219 uint32_t flags = 0);
220 220
221 // TODO(sky): this API is only applicable to the WindowManager. Move it 221 // TODO(sky): this API is only applicable to the WindowManager. Move it
222 // to a better place. 222 // to a better place.
223 void RequestClose(); 223 void RequestClose();
224 224
225 // Tells the window manager to take control of moving the window. Returns
226 // true if the move wasn't canceled.
227 void PerformWindowMove(mojom::MoveLoopSource source,
228 const gfx::Point& cursor_location,
229 const base::Callback<void(bool)>& callback);
230
231 // Tells the window manager to abort any current move initiated by
232 // PerformWindowMove().
233 void CancelWindowMove();
234
225 // Returns an internal name, set by a client app when it creates a window. 235 // Returns an internal name, set by a client app when it creates a window.
226 std::string GetName() const; 236 std::string GetName() const;
227 237
228 protected: 238 protected:
229 // This class is subclassed only by test classes that provide a public ctor. 239 // This class is subclassed only by test classes that provide a public ctor.
230 Window(); 240 Window();
231 ~Window(); 241 ~Window();
232 242
233 private: 243 private:
234 friend class WindowPrivate; 244 friend class WindowPrivate;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 }; 357 };
348 358
349 std::map<const void*, Value> prop_map_; 359 std::map<const void*, Value> prop_map_;
350 360
351 DISALLOW_COPY_AND_ASSIGN(Window); 361 DISALLOW_COPY_AND_ASSIGN(Window);
352 }; 362 };
353 363
354 } // namespace ui 364 } // namespace ui
355 365
356 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 366 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/tests/window_server_test_base.cc ('k') | services/ui/public/cpp/window_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698