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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 860393004: Expose whether a frame is focused to the browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compilation fix on Android/Mac Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index c1c053c9820b589c5e516491914feabeac7b1ce6..654a6c73377a834483c36fb9abc754cebdffa976 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -482,6 +482,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl
void RejectMouseLockOrUnlockIfNecessary();
+ bool is_focused() const { return is_focused_; }
+
#if defined(OS_WIN)
gfx::NativeViewAccessible GetParentNativeViewAccessible();
#endif
@@ -828,6 +830,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl
base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap;
PendingSnapshotMap pending_browser_snapshots_;
+ bool is_focused_;
+
base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);

Powered by Google App Engine
This is Rietveld 408576698