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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 8879049: Aura: Send SetActive IPC to the renderer when focused. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index c0ab2fd7c5bbb08252657c1b34715fee412e4f53..0b0790c15b9a093bfb508a2e373509673e2e2d65 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -469,10 +469,12 @@ void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds,
void RenderWidgetHostViewAura::OnFocus() {
host_->GotFocus();
+ host_->SetActive(true);
}
void RenderWidgetHostViewAura::OnBlur() {
host_->Blur();
+ host_->SetActive(false);
sky 2011/12/09 18:13:23 gtk/win invoke SetActive(false) before Blur. Make
varunjain 2011/12/09 18:42:58 Done.
}
bool RenderWidgetHostViewAura::OnKeyEvent(aura::KeyEvent* event) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698