rename-Relayout-in-DesktopWindowTreeHostPlatform.patch 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. From 5a2cd2409c7d65c019ad9f4595a4e85315857ac4 Mon Sep 17 00:00:00 2001
  2. From: Tom Anderson <thomasanderson@chromium.org>
  3. Date: Mon, 3 Feb 2020 23:18:46 +0000
  4. Subject: [PATCH] Rename Relayout() in DesktopWindowTreeHostPlatform to
  5. ScheduleRelayout()
  6. R=sky
  7. Bug: None
  8. Change-Id: I680cafd25935e59a280e3b2baac754d3d5f13a35
  9. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2036553
  10. Auto-Submit: Thomas Anderson <thomasanderson@chromium.org>
  11. Reviewed-by: Scott Violet <sky@chromium.org>
  12. Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
  13. Cr-Commit-Position: refs/heads/master@{#737974}
  14. ---
  15. .../desktop_aura/desktop_window_tree_host_platform.cc | 6 +++---
  16. .../widget/desktop_aura/desktop_window_tree_host_platform.h | 2 +-
  17. 2 files changed, 4 insertions(+), 4 deletions(-)
  18. diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
  19. index 6c00d49eb3f..9c695d8e5b1 100644
  20. --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
  21. +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_platform.cc
  22. @@ -556,7 +556,7 @@ void DesktopWindowTreeHostPlatform::SetFullscreen(bool fullscreen) {
  23. DCHECK_EQ(fullscreen, IsFullscreen());
  24. if (IsFullscreen() == fullscreen)
  25. - Relayout();
  26. + ScheduleRelayout();
  27. // Else: the widget will be relaid out either when the window bounds change
  28. // or when |platform_window|'s fullscreen state changes.
  29. }
  30. @@ -669,7 +669,7 @@ void DesktopWindowTreeHostPlatform::OnWindowStateChanged(
  31. // Now that we have different window properties, we may need to relayout the
  32. // window. (The windows code doesn't need this because their window change is
  33. // synchronous.)
  34. - Relayout();
  35. + ScheduleRelayout();
  36. }
  37. void DesktopWindowTreeHostPlatform::OnCloseRequest() {
  38. @@ -712,7 +712,7 @@ gfx::Rect DesktopWindowTreeHostPlatform::ToPixelRect(
  39. return gfx::ToEnclosingRect(rect_in_pixels);
  40. }
  41. -void DesktopWindowTreeHostPlatform::Relayout() {
  42. +void DesktopWindowTreeHostPlatform::ScheduleRelayout() {
  43. Widget* widget = native_widget_delegate_->AsWidget();
  44. NonClientView* non_client_view = widget->non_client_view();
  45. // non_client_view may be NULL, especially during creation.
  46. diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_platform.h b/ui/views/widget/desktop_aura/desktop_window_tree_host_platform.h
  47. index 89beb8d2245..75a401e02a7 100644
  48. --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_platform.h
  49. +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_platform.h
  50. @@ -129,7 +129,7 @@ class VIEWS_EXPORT DesktopWindowTreeHostPlatform
  51. gfx::Rect ToPixelRect(const gfx::Rect& rect_in_dip) const;
  52. private:
  53. - void Relayout();
  54. + void ScheduleRelayout();
  55. Widget* GetWidget();
  56. const Widget* GetWidget() const;