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

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: 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_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 // If a RenderWidgetHost is dealing with points that are transformed from the
69 // root frame for a page (i.e. because its content is contained within
70 // that of another RenderWidgetHost), this provides a facility to convert
Charlie Reis 2016/01/21 00:33:03 Maybe drop "that of"?
kenrb 2016/01/22 18:33:59 I ended up rewriting to make the whole thing clear
Charlie Reis 2016/01/22 23:04:54 Acknowledged.
71 // a point from its own coordinate space to that of the root frame.
Charlie Reis 2016/01/21 00:33:03 Is this a no-op if you call it on the root RWHV?
kenrb 2016/01/22 18:33:58 Done.
72 virtual void TransformPointToRootCoordSpace(
Charlie Reis 2016/01/21 00:33:03 Sanity check: I don't suppose it would be possible
kenrb 2016/01/22 18:33:59 It would be nice if there was a more generic way t
Charlie Reis 2016/01/22 23:04:54 Ok, we can go with this approach.
73 const gfx::Point& point,
74 gfx::Point* transformed_point) = 0;
Charlie Reis 2016/01/21 00:33:03 +1 to returning the result if possible, rather tha
kenrb 2016/01/22 18:33:59 Done.
75
68 // Retrieves the native view used to contain plugins and identify the 76 // Retrieves the native view used to contain plugins and identify the
69 // renderer in IPC messages. 77 // renderer in IPC messages.
70 virtual gfx::NativeView GetNativeView() const = 0; 78 virtual gfx::NativeView GetNativeView() const = 0;
71 virtual gfx::NativeViewId GetNativeViewId() const = 0; 79 virtual gfx::NativeViewId GetNativeViewId() const = 0;
72 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; 80 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0;
73 81
74 // Returns a ui::TextInputClient to support text input or nullptr if this RWHV 82 // Returns a ui::TextInputClient to support text input or nullptr if this RWHV
75 // doesn't support text input. 83 // doesn't support text input.
76 // Note: Not all the platforms use ui::InputMethod and ui::TextInputClient for 84 // 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 85 // 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. 179 // Returns |true| if text is currently being spoken by Mac OS X.
172 virtual bool IsSpeaking() const = 0; 180 virtual bool IsSpeaking() const = 0;
173 // Stops speaking, if it is currently in progress. 181 // Stops speaking, if it is currently in progress.
174 virtual void StopSpeaking() = 0; 182 virtual void StopSpeaking() = 0;
175 #endif // defined(OS_MACOSX) 183 #endif // defined(OS_MACOSX)
176 }; 184 };
177 185
178 } // namespace content 186 } // namespace content
179 187
180 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 188 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« content/public/browser/render_frame_host.h ('K') | « 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