Commit 5a2cd240 authored by Tom Anderson's avatar Tom Anderson Committed by Commit Bot

Rename Relayout() in DesktopWindowTreeHostPlatform to ScheduleRelayout()

R=sky

Bug: None
Change-Id: I680cafd25935e59a280e3b2baac754d3d5f13a35
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2036553
Auto-Submit: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#737974}
parent eeb8f4fd
...@@ -556,7 +556,7 @@ void DesktopWindowTreeHostPlatform::SetFullscreen(bool fullscreen) { ...@@ -556,7 +556,7 @@ void DesktopWindowTreeHostPlatform::SetFullscreen(bool fullscreen) {
DCHECK_EQ(fullscreen, IsFullscreen()); DCHECK_EQ(fullscreen, IsFullscreen());
if (IsFullscreen() == fullscreen) if (IsFullscreen() == fullscreen)
Relayout(); ScheduleRelayout();
// Else: the widget will be relaid out either when the window bounds change // Else: the widget will be relaid out either when the window bounds change
// or when |platform_window|'s fullscreen state changes. // or when |platform_window|'s fullscreen state changes.
} }
...@@ -669,7 +669,7 @@ void DesktopWindowTreeHostPlatform::OnWindowStateChanged( ...@@ -669,7 +669,7 @@ void DesktopWindowTreeHostPlatform::OnWindowStateChanged(
// Now that we have different window properties, we may need to relayout the // Now that we have different window properties, we may need to relayout the
// window. (The windows code doesn't need this because their window change is // window. (The windows code doesn't need this because their window change is
// synchronous.) // synchronous.)
Relayout(); ScheduleRelayout();
} }
void DesktopWindowTreeHostPlatform::OnCloseRequest() { void DesktopWindowTreeHostPlatform::OnCloseRequest() {
...@@ -712,7 +712,7 @@ gfx::Rect DesktopWindowTreeHostPlatform::ToPixelRect( ...@@ -712,7 +712,7 @@ gfx::Rect DesktopWindowTreeHostPlatform::ToPixelRect(
return gfx::ToEnclosingRect(rect_in_pixels); return gfx::ToEnclosingRect(rect_in_pixels);
} }
void DesktopWindowTreeHostPlatform::Relayout() { void DesktopWindowTreeHostPlatform::ScheduleRelayout() {
Widget* widget = native_widget_delegate_->AsWidget(); Widget* widget = native_widget_delegate_->AsWidget();
NonClientView* non_client_view = widget->non_client_view(); NonClientView* non_client_view = widget->non_client_view();
// non_client_view may be NULL, especially during creation. // non_client_view may be NULL, especially during creation.
......
...@@ -129,7 +129,7 @@ class VIEWS_EXPORT DesktopWindowTreeHostPlatform ...@@ -129,7 +129,7 @@ class VIEWS_EXPORT DesktopWindowTreeHostPlatform
gfx::Rect ToPixelRect(const gfx::Rect& rect_in_dip) const; gfx::Rect ToPixelRect(const gfx::Rect& rect_in_dip) const;
private: private:
void Relayout(); void ScheduleRelayout();
Widget* GetWidget(); Widget* GetWidget();
const Widget* GetWidget() const; const Widget* GetWidget() const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment