Commit 570f6a1a authored by spang's avatar spang Committed by Commit bot

ozone: Remove "Delegate" from window management IPCs

It was removed from the class name but not the IPC names.

Review URL: https://codereview.chromium.org/1161853007

Cr-Commit-Position: refs/heads/master@{#333161}
parent 93a24d4d
...@@ -89,13 +89,13 @@ IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet, ...@@ -89,13 +89,13 @@ IPC_MESSAGE_CONTROL4(OzoneGpuMsg_CursorSet,
IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CursorMove, IPC_MESSAGE_CONTROL2(OzoneGpuMsg_CursorMove,
gfx::AcceleratedWidget, gfx::Point) gfx::AcceleratedWidget, gfx::Point)
// Explicit creation of a WindowDelegate. We explicitly create the window // Explicit creation of a window. We explicitly create the window such
// delegate such that any state change in the window is not lost while the // that any state change in the window is not lost while the surface is
// surface is created on the GPU side. // created on the GPU side.
IPC_MESSAGE_CONTROL1(OzoneGpuMsg_CreateWindowDelegate, IPC_MESSAGE_CONTROL1(OzoneGpuMsg_CreateWindow,
gfx::AcceleratedWidget /* widget */) gfx::AcceleratedWidget /* widget */)
IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DestroyWindowDelegate, IPC_MESSAGE_CONTROL1(OzoneGpuMsg_DestroyWindow,
gfx::AcceleratedWidget /* widget */) gfx::AcceleratedWidget /* widget */)
// Updates the location and size of the widget on the screen. // Updates the location and size of the widget on the screen.
......
...@@ -122,8 +122,8 @@ class DrmGpuPlatformSupportMessageFilter : public IPC::MessageFilter { ...@@ -122,8 +122,8 @@ class DrmGpuPlatformSupportMessageFilter : public IPC::MessageFilter {
bool MessageAffectsCursorState(uint32 message_type) { bool MessageAffectsCursorState(uint32 message_type) {
switch (message_type) { switch (message_type) {
case OzoneGpuMsg_CreateWindowDelegate::ID: case OzoneGpuMsg_CreateWindow::ID:
case OzoneGpuMsg_DestroyWindowDelegate::ID: case OzoneGpuMsg_DestroyWindow::ID:
case OzoneGpuMsg_WindowBoundsChanged::ID: case OzoneGpuMsg_WindowBoundsChanged::ID:
case OzoneGpuMsg_ConfigureNativeDisplay::ID: case OzoneGpuMsg_ConfigureNativeDisplay::ID:
case OzoneGpuMsg_DisableNativeDisplay::ID: case OzoneGpuMsg_DisableNativeDisplay::ID:
...@@ -199,9 +199,8 @@ bool DrmGpuPlatformSupport::OnMessageReceived(const IPC::Message& message) { ...@@ -199,9 +199,8 @@ bool DrmGpuPlatformSupport::OnMessageReceived(const IPC::Message& message) {
bool handled = true; bool handled = true;
IPC_BEGIN_MESSAGE_MAP(DrmGpuPlatformSupport, message) IPC_BEGIN_MESSAGE_MAP(DrmGpuPlatformSupport, message)
IPC_MESSAGE_HANDLER(OzoneGpuMsg_CreateWindowDelegate, OnCreateWindowDelegate) IPC_MESSAGE_HANDLER(OzoneGpuMsg_CreateWindow, OnCreateWindow)
IPC_MESSAGE_HANDLER(OzoneGpuMsg_DestroyWindowDelegate, IPC_MESSAGE_HANDLER(OzoneGpuMsg_DestroyWindow, OnDestroyWindow)
OnDestroyWindowDelegate)
IPC_MESSAGE_HANDLER(OzoneGpuMsg_WindowBoundsChanged, OnWindowBoundsChanged) IPC_MESSAGE_HANDLER(OzoneGpuMsg_WindowBoundsChanged, OnWindowBoundsChanged)
IPC_MESSAGE_HANDLER(OzoneGpuMsg_CursorSet, OnCursorSet) IPC_MESSAGE_HANDLER(OzoneGpuMsg_CursorSet, OnCursorSet)
...@@ -233,16 +232,14 @@ bool DrmGpuPlatformSupport::OnMessageReceived(const IPC::Message& message) { ...@@ -233,16 +232,14 @@ bool DrmGpuPlatformSupport::OnMessageReceived(const IPC::Message& message) {
return false; return false;
} }
void DrmGpuPlatformSupport::OnCreateWindowDelegate( void DrmGpuPlatformSupport::OnCreateWindow(gfx::AcceleratedWidget widget) {
gfx::AcceleratedWidget widget) {
scoped_ptr<DrmWindow> delegate( scoped_ptr<DrmWindow> delegate(
new DrmWindow(widget, drm_device_manager_, screen_manager_)); new DrmWindow(widget, drm_device_manager_, screen_manager_));
delegate->Initialize(); delegate->Initialize();
screen_manager_->AddWindow(widget, delegate.Pass()); screen_manager_->AddWindow(widget, delegate.Pass());
} }
void DrmGpuPlatformSupport::OnDestroyWindowDelegate( void DrmGpuPlatformSupport::OnDestroyWindow(gfx::AcceleratedWidget widget) {
gfx::AcceleratedWidget widget) {
scoped_ptr<DrmWindow> delegate = screen_manager_->RemoveWindow(widget); scoped_ptr<DrmWindow> delegate = screen_manager_->RemoveWindow(widget);
delegate->Shutdown(); delegate->Shutdown();
} }
......
...@@ -59,8 +59,8 @@ class DrmGpuPlatformSupport : public GpuPlatformSupport { ...@@ -59,8 +59,8 @@ class DrmGpuPlatformSupport : public GpuPlatformSupport {
bool OnMessageReceived(const IPC::Message& message) override; bool OnMessageReceived(const IPC::Message& message) override;
private: private:
void OnCreateWindowDelegate(gfx::AcceleratedWidget widget); void OnCreateWindow(gfx::AcceleratedWidget widget);
void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget); void OnDestroyWindow(gfx::AcceleratedWidget widget);
void OnWindowBoundsChanged(gfx::AcceleratedWidget widget, void OnWindowBoundsChanged(gfx::AcceleratedWidget widget,
const gfx::Rect& bounds); const gfx::Rect& bounds);
void OnCursorSet(gfx::AcceleratedWidget widget, void OnCursorSet(gfx::AcceleratedWidget widget,
......
...@@ -45,7 +45,7 @@ DrmWindowHost::~DrmWindowHost() { ...@@ -45,7 +45,7 @@ DrmWindowHost::~DrmWindowHost() {
cursor_->OnWindowRemoved(widget_); cursor_->OnWindowRemoved(widget_);
sender_->RemoveChannelObserver(this); sender_->RemoveChannelObserver(this);
sender_->Send(new OzoneGpuMsg_DestroyWindowDelegate(widget_)); sender_->Send(new OzoneGpuMsg_DestroyWindow(widget_));
} }
void DrmWindowHost::Initialize() { void DrmWindowHost::Initialize() {
...@@ -179,7 +179,7 @@ uint32_t DrmWindowHost::DispatchEvent(const PlatformEvent& native_event) { ...@@ -179,7 +179,7 @@ uint32_t DrmWindowHost::DispatchEvent(const PlatformEvent& native_event) {
} }
void DrmWindowHost::OnChannelEstablished() { void DrmWindowHost::OnChannelEstablished() {
sender_->Send(new OzoneGpuMsg_CreateWindowDelegate(widget_)); sender_->Send(new OzoneGpuMsg_CreateWindow(widget_));
SendBoundsChange(); SendBoundsChange();
} }
......
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