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

Unified Diff: content/renderer/render_view_impl.h

Issue 1400003003: Move has_focus_ tracking from RenderWidget to RenderView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Leave OnSetFocus plumbing alone Created 5 years, 2 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 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 805dc0742634039f9ff6b68e7eadc99603a88546..1ad1e70ad33037f479612aac247d4454b2ff1f74 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -232,6 +232,8 @@ class CONTENT_EXPORT RenderViewImpl
// as that is only for changes that aren't initiated by the client.
void SetZoomLevel(double zoom_level);
+ bool has_focus() const { return has_focus_; }
Charlie Reis 2015/10/14 19:32:52 Let's document what this means. It's page-level f
alexmos 2015/10/14 20:12:33 Done.
+
// Plugin-related functions --------------------------------------------------
#if defined(ENABLE_PLUGINS)
@@ -873,6 +875,9 @@ class CONTENT_EXPORT RenderViewImpl
TopControlsState top_controls_constraints_;
#endif
+ // Indicates whether we have been focused/unfocused by the browser.
Charlie Reis 2015/10/14 19:32:52 s/we have/this page has/
alexmos 2015/10/14 20:12:33 Done.
+ bool has_focus_;
+
// View ----------------------------------------------------------------------
// Cache the preferred size of the page in order to prevent sending the IPC

Powered by Google App Engine
This is Rietveld 408576698