| Index: content/browser/frame_host/render_widget_host_view_mus.h
|
| diff --git a/content/browser/frame_host/render_widget_host_view_mus.h b/content/browser/frame_host/render_widget_host_view_mus.h
|
| deleted file mode 100644
|
| index 07b15cf8ccb5c59ab8460285ed383e85abecf14d..0000000000000000000000000000000000000000
|
| --- a/content/browser/frame_host/render_widget_host_view_mus.h
|
| +++ /dev/null
|
| @@ -1,133 +0,0 @@
|
| -// Copyright 2015 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_
|
| -#define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_
|
| -
|
| -#include "base/macros.h"
|
| -#include "content/browser/renderer_host/render_widget_host_view_base.h"
|
| -
|
| -namespace content {
|
| -
|
| -class RenderWidgetHost;
|
| -class RenderWidgetHostImpl;
|
| -struct NativeWebKeyboardEvent;
|
| -
|
| -// See comments in render_widget_host_view.h about this class and its members.
|
| -// This version of RenderWidgetHostView is for builds of Chrome that run through
|
| -// the mojo shell and use the Mandoline UI Service (Mus). Mus is responsible for
|
| -// windowing, compositing, and input event dispatch. The purpose of
|
| -// RenderWidgetHostViewMus is to manage the mus::Window owned by the content
|
| -// embedder. The browser is the owner of the mus::Window, controlling properties
|
| -// such as visibility, and bounds. Some aspects such as input, focus, and cursor
|
| -// are managed by Mus directly. Input event routing will be plumbed directly to
|
| -// the renderer from Mus.
|
| -class CONTENT_EXPORT RenderWidgetHostViewMus : public RenderWidgetHostViewBase {
|
| - public:
|
| - RenderWidgetHostViewMus(
|
| - RenderWidgetHostImpl* widget,
|
| - base::WeakPtr<RenderWidgetHostViewBase> platform_view);
|
| - ~RenderWidgetHostViewMus() override;
|
| -
|
| - private:
|
| - // RenderWidgetHostView implementation.
|
| - void InitAsChild(gfx::NativeView parent_view) override;
|
| - RenderWidgetHost* GetRenderWidgetHost() const override;
|
| - void SetSize(const gfx::Size& size) override;
|
| - void SetBounds(const gfx::Rect& rect) override;
|
| - void Focus() override;
|
| - bool HasFocus() const override;
|
| - bool IsSurfaceAvailableForCopy() const override;
|
| - void Show() override;
|
| - void Hide() override;
|
| - bool IsShowing() override;
|
| - gfx::NativeView GetNativeView() const override;
|
| - gfx::NativeViewId GetNativeViewId() const override;
|
| - gfx::NativeViewAccessible GetNativeViewAccessible() override;
|
| - gfx::Rect GetViewBounds() const override;
|
| - gfx::Vector2dF GetLastScrollOffset() const override;
|
| - void SetBackgroundColor(SkColor color) override;
|
| - gfx::Size GetPhysicalBackingSize() const override;
|
| - base::string16 GetSelectedText() const override;
|
| -
|
| - // RenderWidgetHostViewBase implementation.
|
| - void InitAsPopup(RenderWidgetHostView* parent_host_view,
|
| - const gfx::Rect& bounds) override;
|
| - void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
|
| - void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override;
|
| - void UpdateCursor(const WebCursor& cursor) override;
|
| - void SetIsLoading(bool is_loading) override;
|
| - void TextInputStateChanged(
|
| - const ViewHostMsg_TextInputState_Params& params) override;
|
| - void ImeCancelComposition() override;
|
| -#if defined(OS_MACOSX) || defined(USE_AURA)
|
| - void ImeCompositionRangeChanged(
|
| - const gfx::Range& range,
|
| - const std::vector<gfx::Rect>& character_bounds) override;
|
| -#endif
|
| - void RenderProcessGone(base::TerminationStatus status,
|
| - int error_code) override;
|
| - void Destroy() override;
|
| - void SetTooltipText(const base::string16& tooltip_text) override;
|
| - void SelectionChanged(const base::string16& text,
|
| - size_t offset,
|
| - const gfx::Range& range) override;
|
| - void SelectionBoundsChanged(
|
| - const ViewHostMsg_SelectionBounds_Params& params) override;
|
| - void CopyFromCompositingSurface(
|
| - const gfx::Rect& src_subrect,
|
| - const gfx::Size& dst_size,
|
| - const ReadbackRequestCallback& callback,
|
| - const SkColorType preferred_color_type) override;
|
| - void CopyFromCompositingSurfaceToVideoFrame(
|
| - const gfx::Rect& src_subrect,
|
| - const scoped_refptr<media::VideoFrame>& target,
|
| - const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
|
| - bool CanCopyToVideoFrame() const override;
|
| - bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
|
| - void ClearCompositorFrame() override {}
|
| - bool LockMouse() override;
|
| - void UnlockMouse() override;
|
| - void GetScreenInfo(blink::WebScreenInfo* results) override;
|
| - bool GetScreenColorProfile(std::vector<char>* color_profile) override;
|
| - gfx::Rect GetBoundsInRootWindow() override;
|
| -
|
| -#if defined(OS_MACOSX)
|
| - // RenderWidgetHostView implementation.
|
| - void SetActive(bool active) override;
|
| - void SetWindowVisibility(bool visible) override;
|
| - void WindowFrameChanged() override;
|
| - void ShowDefinitionForSelection() override;
|
| - bool SupportsSpeech() const override;
|
| - void SpeakSelection() override;
|
| - bool IsSpeaking() const override;
|
| - void StopSpeaking() override;
|
| -
|
| - // RenderWidgetHostViewBase implementation.
|
| - bool PostProcessEventForPluginIme(
|
| - const NativeWebKeyboardEvent& event) override;
|
| -#endif // defined(OS_MACOSX)
|
| -
|
| - void LockCompositingSurface() override;
|
| - void UnlockCompositingSurface() override;
|
| -
|
| -#if defined(OS_WIN)
|
| - void SetParentNativeViewAccessible(
|
| - gfx::NativeViewAccessible accessible_parent) override;
|
| - gfx::NativeViewId GetParentForWindowlessPlugin() const override;
|
| -#endif
|
| -
|
| - RenderWidgetHostImpl* host_;
|
| - gfx::Size size_;
|
| - // The platform view for this RenderWidgetHostView.
|
| - // RenderWidgetHostViewMus mostly only cares about stuff related to
|
| - // compositing, the rest are directly forwared to this |platform_view_|.
|
| - base::WeakPtr<RenderWidgetHostViewBase> platform_view_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMus);
|
| -};
|
| -
|
| -} // namespace content
|
| -
|
| -#endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_
|
|
|