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

Unified Diff: content/browser/renderer_host/render_widget_resize_helper_mac.h

Issue 1513053002: WIP - Gutterless resize on Windows Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_resize_helper_mac.h
diff --git a/content/browser/renderer_host/render_widget_resize_helper_mac.h b/content/browser/renderer_host/render_widget_resize_helper_mac.h
deleted file mode 100644
index 459966f668a7945ddcd5e6e25ce7000d7c5e3680..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/render_widget_resize_helper_mac.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_RESIZE_HELPER_MAC_H_
-#define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_RESIZE_HELPER_MAC_H_
-
-#include "base/macros.h"
-
-namespace IPC {
-class Message;
-}
-
-namespace content {
-
-// Provides functions for content to synchronize with window resize tasks being
-// managed by ui::WindowResizeHelperMac. WindowResizeHelperMac must be
-// initialized before calling these functions.
-//
-// The IPCs that are required to create new frames for smooth resize are sent
-// to the ui::WindowResizeHelperMac singleton using the PostRendererProcessMsg()
-// and PostGpuProcessMsg() methods. Usually those IPCs arrive on the IO thread
-// and are posted as tasks to the UI thread either by the RenderMessageFilter
-// (for renderer processes) or the GpuProcessHostUIShim (for the GPU process).
-// By posting them via RenderWidgetResizeHelper instead, it allows a smooth
-// window resize to be controlled by WindowResizeHelperMac.
-class RenderWidgetResizeHelper {
- public:
- // IO THREAD ONLY -----------------------------------------------------------
-
- // This will cause |msg| to be handled by the RenderProcessHost corresponding
- // to |render_process_id|, on the UI thread. This will either happen when the
- // ordinary message loop would run it, or potentially earlier in a call to
- // WindowResizeHelperMac::WaitForSingleTaskToRun().
- static void PostRendererProcessMsg(int render_process_id,
- const IPC::Message& msg);
-
- // This is similar to PostRendererProcessMsg, but will handle the message in
- // the GpuProcessHostUIShim corresponding to |gpu_host_id|.
- static void PostGpuProcessMsg(int gpu_host_id, const IPC::Message& msg);
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(RenderWidgetResizeHelper);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_RESIZE_HELPER_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698