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

Unified Diff: content/renderer/render_view_impl.h

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hide popup when resizing the viewport resulted in movement of the focused element. Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 23b1a0a9984ebd76711d135eabb6c3650e164c6a..6ef4fd309f2babe4503d74ca03c29078628c1e57 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -508,6 +508,7 @@ class CONTENT_EXPORT RenderViewImpl
void OnOrientationChange() override;
ui::TextInputType GetTextInputType() override;
void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end) override;
+ void FocusChangeComplete() override;
void GetCompositionCharacterBounds(
std::vector<gfx::Rect>* character_bounds) override;
void GetCompositionRange(gfx::Range* range) override;
@@ -517,6 +518,7 @@ class CONTENT_EXPORT RenderViewImpl
void InstrumentDidBeginFrame() override;
void InstrumentDidCancelFrame() override;
void InstrumentWillComposite() override;
+ void DidCompletePageScaleAnimation() override;
protected:
explicit RenderViewImpl(const ViewMsg_New_Params& params);
@@ -1065,6 +1067,10 @@ class CONTENT_EXPORT RenderViewImpl
typedef std::map<cc::SharedBitmapId, cc::SharedBitmap*> BitmapMap;
BitmapMap disambiguation_bitmaps_;
+ // The bounds of the focused element in the viewport space. Updated when focus
+ // changes and when the viewport resizes.
+ blink::WebRect focused_element_bounds_;
+
// ---------------------------------------------------------------------------
// ADDING NEW DATA? Please see if it fits appropriately in one of the above
// sections rather than throwing it randomly at the end. If you're adding a

Powered by Google App Engine
This is Rietveld 408576698