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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.h

Issue 1834913002: Fix visual viewport for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix webview and unit tests Created 4 years, 8 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 RenderWidgetHost* GetRenderWidgetHost() const override; 76 RenderWidgetHost* GetRenderWidgetHost() const override;
77 void SetSize(const gfx::Size& size) override; 77 void SetSize(const gfx::Size& size) override;
78 void SetBounds(const gfx::Rect& rect) override; 78 void SetBounds(const gfx::Rect& rect) override;
79 void Focus() override; 79 void Focus() override;
80 bool HasFocus() const override; 80 bool HasFocus() const override;
81 bool IsSurfaceAvailableForCopy() const override; 81 bool IsSurfaceAvailableForCopy() const override;
82 void Show() override; 82 void Show() override;
83 void Hide() override; 83 void Hide() override;
84 bool IsShowing() override; 84 bool IsShowing() override;
85 gfx::Rect GetViewBounds() const override; 85 gfx::Rect GetViewBounds() const override;
86 gfx::Size GetVisibleViewportSize() const override;
86 gfx::Vector2dF GetLastScrollOffset() const override; 87 gfx::Vector2dF GetLastScrollOffset() const override;
87 gfx::NativeView GetNativeView() const override; 88 gfx::NativeView GetNativeView() const override;
88 gfx::NativeViewId GetNativeViewId() const override; 89 gfx::NativeViewId GetNativeViewId() const override;
89 gfx::NativeViewAccessible GetNativeViewAccessible() override; 90 gfx::NativeViewAccessible GetNativeViewAccessible() override;
90 void SetBackgroundColor(SkColor color) override; 91 void SetBackgroundColor(SkColor color) override;
91 gfx::Size GetPhysicalBackingSize() const override; 92 gfx::Size GetPhysicalBackingSize() const override;
92 93
93 // RenderWidgetHostViewBase implementation. 94 // RenderWidgetHostViewBase implementation.
94 void InitAsPopup(RenderWidgetHostView* parent_host_view, 95 void InitAsPopup(RenderWidgetHostView* parent_host_view,
95 const gfx::Rect& bounds) override; 96 const gfx::Rect& bounds) override;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // it convenient to swap() when processing the list. 233 // it convenient to swap() when processing the list.
233 FrameSwappedCallbackList frame_swapped_callbacks_; 234 FrameSwappedCallbackList frame_swapped_callbacks_;
234 235
235 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 236 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
236 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 237 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
237 }; 238 };
238 239
239 } // namespace content 240 } // namespace content
240 241
241 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 242 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698