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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 1526263003: Position autofill popup widgets correctly under --site-per-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mo IOS fixin Created 4 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool IsShowingContextMenu() const override; 81 bool IsShowingContextMenu() const override;
82 void SetShowingContextMenu(bool showing_menu) override; 82 void SetShowingContextMenu(bool showing_menu) override;
83 base::string16 GetSelectedText() const override; 83 base::string16 GetSelectedText() const override;
84 bool IsMouseLocked() override; 84 bool IsMouseLocked() override;
85 gfx::Size GetVisibleViewportSize() const override; 85 gfx::Size GetVisibleViewportSize() const override;
86 void SetInsets(const gfx::Insets& insets) override; 86 void SetInsets(const gfx::Insets& insets) override;
87 void BeginFrameSubscription( 87 void BeginFrameSubscription(
88 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; 88 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override;
89 void EndFrameSubscription() override; 89 void EndFrameSubscription() override;
90 90
91 // This only needs to be overridden by RenderWidgetHostView subclasses
Charlie Reis 2016/01/21 00:33:03 Do you mean RenderWidgetHostViewBase subclasses?
kenrb 2016/01/22 18:33:58 Done.
92 // that handle content embedded within other RenderWidgetHostViews.
93 void TransformPointToRootCoordSpace(const gfx::Point& point,
94 gfx::Point* transformed_point) override;
95
91 // IPC::Listener implementation: 96 // IPC::Listener implementation:
92 bool OnMessageReceived(const IPC::Message& msg) override; 97 bool OnMessageReceived(const IPC::Message& msg) override;
93 98
94 void SetPopupType(blink::WebPopupType popup_type); 99 void SetPopupType(blink::WebPopupType popup_type);
95 100
96 blink::WebPopupType GetPopupType(); 101 blink::WebPopupType GetPopupType();
97 102
98 // Return a value that is incremented each time the renderer swaps a new frame 103 // Return a value that is incremented each time the renderer swaps a new frame
99 // to the view. 104 // to the view.
100 uint32_t RendererFrameNumber(); 105 uint32_t RendererFrameNumber();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // properly handle the event (i.e. it has focus for keyboard events, or has 202 // properly handle the event (i.e. it has focus for keyboard events, or has
198 // been identified by hit testing mouse, touch or gesture events). 203 // been identified by hit testing mouse, touch or gesture events).
199 virtual uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point, 204 virtual uint32_t SurfaceIdNamespaceAtPoint(const gfx::Point& point,
200 gfx::Point* transformed_point); 205 gfx::Point* transformed_point);
201 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {} 206 virtual void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) {}
202 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {} 207 virtual void ProcessMouseEvent(const blink::WebMouseEvent& event) {}
203 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {} 208 virtual void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event) {}
204 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event, 209 virtual void ProcessTouchEvent(const blink::WebTouchEvent& event,
205 const ui::LatencyInfo& latency) {} 210 const ui::LatencyInfo& latency) {}
206 211
207 // If a RenderWidgetHost is dealing with points that are transformed from the
208 // root frame for a page (i.e. because its content is contained within
209 // that of another RenderWidgetHost), this provides a facility to convert
210 // a point from its own coordinate space to that of the root frame.
211 // This only needs to be overriden by RenderWidgetHostView subclasses
212 // that handle content embedded within other RenderWidgetHostViews.
213 virtual void TransformPointToRootCoordSpace(const gfx::Point& point,
214 gfx::Point* transformed_point);
215
216 // Transform a point that is in the coordinate space of a Surface that is 212 // Transform a point that is in the coordinate space of a Surface that is
217 // embedded within the RenderWidgetHostViewBase's Surface to the 213 // embedded within the RenderWidgetHostViewBase's Surface to the
218 // coordinate space of the embedding Surface. Typically this means that a 214 // coordinate space of the embedding Surface. Typically this means that a
219 // point was received from an out-of-process iframe's RenderWidget and needs 215 // point was received from an out-of-process iframe's RenderWidget and needs
220 // to be translated to viewport coordinates for the root RWHV, in which case 216 // to be translated to viewport coordinates for the root RWHV, in which case
221 // this method is called on the root RWHV with the out-of-process iframe's 217 // this method is called on the root RWHV with the out-of-process iframe's
222 // SurfaceId. 218 // SurfaceId.
223 virtual void TransformPointToLocalCoordSpace(const gfx::Point& point, 219 virtual void TransformPointToLocalCoordSpace(const gfx::Point& point,
224 cc::SurfaceId original_surface, 220 cc::SurfaceId original_surface,
225 gfx::Point* transformed_point); 221 gfx::Point* transformed_point);
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 base::OneShotTimer flush_input_timer_; 444 base::OneShotTimer flush_input_timer_;
449 445
450 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 446 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
451 447
452 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 448 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
453 }; 449 };
454 450
455 } // namespace content 451 } // namespace content
456 452
457 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 453 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698