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

Side by Side Diff: components/mus/ws/window_tree.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 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 COMPONENTS_MUS_WS_WINDOW_TREE_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 bool SetWindowOpacity(const ClientWindowId& window_id, float opacity); 159 bool SetWindowOpacity(const ClientWindowId& window_id, float opacity);
160 bool SetFocus(const ClientWindowId& window_id); 160 bool SetFocus(const ClientWindowId& window_id);
161 bool Embed(const ClientWindowId& window_id, 161 bool Embed(const ClientWindowId& window_id,
162 mojom::WindowTreeClientPtr client); 162 mojom::WindowTreeClientPtr client);
163 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); 163 void DispatchInputEvent(ServerWindow* target, const ui::Event& event);
164 164
165 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); 165 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id);
166 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, 166 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id,
167 uint32_t client_change_id, 167 uint32_t client_change_id,
168 const ServerWindow* window); 168 const ServerWindow* window);
169 void OnMoveLoopCompleted(uint32_t client_change_id, bool completed);
169 void AddActivationParent(const ClientWindowId& window_id); 170 void AddActivationParent(const ClientWindowId& window_id);
170 171
171 // Calls through to the client. 172 // Calls through to the client.
172 void OnChangeCompleted(uint32_t change_id, bool success); 173 void OnChangeCompleted(uint32_t change_id, bool success);
173 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event); 174 void OnAccelerator(uint32_t accelerator_id, const ui::Event& event);
174 175
175 // Called when |tree|'s jankiness changes (see janky_ for definition). 176 // Called when |tree|'s jankiness changes (see janky_ for definition).
176 // Notifies the window manager client so it can update UI for the affected 177 // Notifies the window manager client so it can update UI for the affected
177 // window(s). 178 // window(s).
178 void ClientJankinessChanged(WindowTree* tree); 179 void ClientJankinessChanged(WindowTree* tree);
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 void SetClientArea( 391 void SetClientArea(
391 Id transport_window_id, 392 Id transport_window_id,
392 const gfx::Insets& insets, 393 const gfx::Insets& insets,
393 mojo::Array<gfx::Rect> transport_additional_client_areas) override; 394 mojo::Array<gfx::Rect> transport_additional_client_areas) override;
394 void SetHitTestMask(Id transport_window_id, const gfx::Rect& mask) override; 395 void SetHitTestMask(Id transport_window_id, const gfx::Rect& mask) override;
395 void GetWindowManagerClient( 396 void GetWindowManagerClient(
396 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) 397 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal)
397 override; 398 override;
398 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) 399 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback)
399 override; 400 override;
401 void PerformWindowMove(uint32_t change_id,
402 Id window_id,
403 const gfx::Point& cursor) override;
404 void CancelWindowMove(Id window_id) override;
400 405
401 // mojom::WindowManagerClient: 406 // mojom::WindowManagerClient:
402 void AddAccelerator(uint32_t id, 407 void AddAccelerator(uint32_t id,
403 mojom::EventMatcherPtr event_matcher, 408 mojom::EventMatcherPtr event_matcher,
404 const AddAcceleratorCallback& callback) override; 409 const AddAcceleratorCallback& callback) override;
405 void RemoveAccelerator(uint32_t id) override; 410 void RemoveAccelerator(uint32_t id) override;
406 void AddActivationParent(Id transport_window_id) override; 411 void AddActivationParent(Id transport_window_id) override;
407 void RemoveActivationParent(Id transport_window_id) override; 412 void RemoveActivationParent(Id transport_window_id) override;
408 void ActivateNextWindow() override; 413 void ActivateNextWindow() override;
409 void SetUnderlaySurfaceOffsetAndExtendedHitArea( 414 void SetUnderlaySurfaceOffsetAndExtendedHitArea(
410 Id window_id, 415 Id window_id,
411 int32_t x_offset, 416 int32_t x_offset,
412 int32_t y_offset, 417 int32_t y_offset,
413 const gfx::Insets& hit_area) override; 418 const gfx::Insets& hit_area) override;
414 void WmResponse(uint32_t change_id, bool response) override; 419 void WmResponse(uint32_t change_id, bool response) override;
415 void WmRequestClose(Id transport_window_id) override; 420 void WmRequestClose(Id transport_window_id) override;
416 void WmSetFrameDecorationValues( 421 void WmSetFrameDecorationValues(
417 mojom::FrameDecorationValuesPtr values) override; 422 mojom::FrameDecorationValuesPtr values) override;
418 void WmSetNonClientCursor(uint32_t window_id, 423 void WmSetNonClientCursor(uint32_t window_id,
419 mojom::Cursor cursor_id) override; 424 mojom::Cursor cursor_id) override;
420 void OnWmCreatedTopLevelWindow(uint32_t change_id, 425 void OnWmCreatedTopLevelWindow(uint32_t change_id,
421 Id transport_window_id) override; 426 Id transport_window_id) override;
427 void OnWmMoveLoopCompleted(uint32_t change_id,
428 Id transport_window_id,
429 bool succeeded) override;
422 430
423 // AccessPolicyDelegate: 431 // AccessPolicyDelegate:
424 bool HasRootForAccessPolicy(const ServerWindow* window) const override; 432 bool HasRootForAccessPolicy(const ServerWindow* window) const override;
425 bool IsWindowKnownForAccessPolicy(const ServerWindow* window) const override; 433 bool IsWindowKnownForAccessPolicy(const ServerWindow* window) const override;
426 bool IsWindowRootOfAnotherTreeForAccessPolicy( 434 bool IsWindowRootOfAnotherTreeForAccessPolicy(
427 const ServerWindow* window) const override; 435 const ServerWindow* window) const override;
428 436
429 WindowServer* window_server_; 437 WindowServer* window_server_;
430 438
431 UserId user_id_; 439 UserId user_id_;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 std::unique_ptr<WaitingForTopLevelWindowInfo> 487 std::unique_ptr<WaitingForTopLevelWindowInfo>
480 waiting_for_top_level_window_info_; 488 waiting_for_top_level_window_info_;
481 489
482 DISALLOW_COPY_AND_ASSIGN(WindowTree); 490 DISALLOW_COPY_AND_ASSIGN(WindowTree);
483 }; 491 };
484 492
485 } // namespace ws 493 } // namespace ws
486 } // namespace mus 494 } // namespace mus
487 495
488 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ 496 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698