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

Side by Side Diff: content/public/browser/render_widget_host_view.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: Fixed incorrect cast 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
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Tells the View to size itself to the specified size. 58 // Tells the View to size itself to the specified size.
59 virtual void SetSize(const gfx::Size& size) = 0; 59 virtual void SetSize(const gfx::Size& size) = 0;
60 60
61 // Tells the View to size and move itself to the specified size and point in 61 // Tells the View to size and move itself to the specified size and point in
62 // screen space. 62 // screen space.
63 virtual void SetBounds(const gfx::Rect& rect) = 0; 63 virtual void SetBounds(const gfx::Rect& rect) = 0;
64 64
65 // Retrieves the last known scroll position. 65 // Retrieves the last known scroll position.
66 virtual gfx::Vector2dF GetLastScrollOffset() const = 0; 66 virtual gfx::Vector2dF GetLastScrollOffset() const = 0;
67 67
68 // Coordinate points received from a renderer process need to be transformed
69 // to the top-level frame's coordinate space. For coordinates received from
70 // the top-level frame's renderer this is a no-op as they are already
71 // properly transformed; however, coordinates received from an out-of-process
72 // iframe renderer process require transformation.
73 virtual gfx::Point TransformPointToRootCoordSpace(
74 const gfx::Point& point) = 0;
75
76 // A floating point variant of the above. PointF values will be snapped to
77 // integral points before transformation.
78 virtual gfx::PointF TransformPointToRootCoordSpaceF(
79 const gfx::PointF& point) = 0;
80
68 // Retrieves the native view used to contain plugins and identify the 81 // Retrieves the native view used to contain plugins and identify the
69 // renderer in IPC messages. 82 // renderer in IPC messages.
70 virtual gfx::NativeView GetNativeView() const = 0; 83 virtual gfx::NativeView GetNativeView() const = 0;
71 virtual gfx::NativeViewId GetNativeViewId() const = 0; 84 virtual gfx::NativeViewId GetNativeViewId() const = 0;
72 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; 85 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0;
73 86
74 // Returns a ui::TextInputClient to support text input or nullptr if this RWHV 87 // Returns a ui::TextInputClient to support text input or nullptr if this RWHV
75 // doesn't support text input. 88 // doesn't support text input.
76 // Note: Not all the platforms use ui::InputMethod and ui::TextInputClient for 89 // Note: Not all the platforms use ui::InputMethod and ui::TextInputClient for
77 // text input. Some platforms (Mac and Android for example) use their own 90 // text input. Some platforms (Mac and Android for example) use their own
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Returns |true| if text is currently being spoken by Mac OS X. 184 // Returns |true| if text is currently being spoken by Mac OS X.
172 virtual bool IsSpeaking() const = 0; 185 virtual bool IsSpeaking() const = 0;
173 // Stops speaking, if it is currently in progress. 186 // Stops speaking, if it is currently in progress.
174 virtual void StopSpeaking() = 0; 187 virtual void StopSpeaking() = 0;
175 #endif // defined(OS_MACOSX) 188 #endif // defined(OS_MACOSX)
176 }; 189 };
177 190
178 } // namespace content 191 } // namespace content
179 192
180 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 193 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698