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

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

Issue 2577023003: Removes WebContentsViewMus/RenderWidgetHostViewMus (Closed)
Patch Set: fix test Created 4 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/renderer_host/delegated_frame_host_client_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/delegated_frame_host_client_aura.h
diff --git a/content/browser/renderer_host/delegated_frame_host_client_aura.h b/content/browser/renderer_host/delegated_frame_host_client_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..8080e866a8a82b2ae21dba3931b9e565954e239a
--- /dev/null
+++ b/content/browser/renderer_host/delegated_frame_host_client_aura.h
@@ -0,0 +1,53 @@
+// Copyright 2016 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_DELEGATED_FRAME_HOST_CLIENT_AURA_H_
+#define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_CLIENT_AURA_H_
+
+#include "base/macros.h"
+#include "content/browser/renderer_host/delegated_frame_host.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+class RenderWidgetHostViewAura;
+
+// DelegatedFrameHostClient implementation for aura, not used in mus.
+class CONTENT_EXPORT DelegatedFrameHostClientAura
+ : public DelegatedFrameHostClient {
+ public:
+ explicit DelegatedFrameHostClientAura(
+ RenderWidgetHostViewAura* render_widget_host_view);
+ virtual ~DelegatedFrameHostClientAura();
+
+ protected:
+ RenderWidgetHostViewAura* render_widget_host_view() {
+ return render_widget_host_view_;
+ }
+
+ // DelegatedFrameHostClient implementation.
+ ui::Layer* DelegatedFrameHostGetLayer() const override;
+ bool DelegatedFrameHostIsVisible() const override;
+ SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override;
+ gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override;
+ bool DelegatedFrameCanCreateResizeLock() const override;
+ std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock(
+ bool defer_compositor_lock) override;
+ void DelegatedFrameHostResizeLockWasReleased() override;
+ void DelegatedFrameHostSendReclaimCompositorResources(
+ int compositor_frame_sink_id,
+ bool is_swap_ack,
+ const cc::ReturnedResourceArray& resources) override;
+ void SetBeginFrameSource(cc::BeginFrameSource* source) override;
+ bool IsAutoResizeEnabled() const override;
+
+ private:
+ RenderWidgetHostViewAura* render_widget_host_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(DelegatedFrameHostClientAura);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_HOST_CLIENT_AURA_H_
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/renderer_host/delegated_frame_host_client_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698