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

Unified Diff: blimp/engine/session/tab.cc

Issue 2381373002: Disable caret blinking for blimp (Closed)
Patch Set: BUILD.gn changes Created 4 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
« no previous file with comments | « blimp/engine/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/session/tab.cc
diff --git a/blimp/engine/session/tab.cc b/blimp/engine/session/tab.cc
index afda6131f41062d44009071be2971e5aa0594de1..895902350dcc244a3438d8d417faa6f5cd83685c 100644
--- a/blimp/engine/session/tab.cc
+++ b/blimp/engine/session/tab.cc
@@ -19,6 +19,7 @@
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/common/renderer_preferences.h"
#include "ui/aura/window.h"
#include "ui/gfx/geometry/size.h"
@@ -103,6 +104,9 @@ void Tab::Reload() {
void Tab::RenderViewCreated(content::RenderViewHost* render_view_host) {
DCHECK(render_view_host);
+ web_contents_->GetMutableRendererPrefs()->caret_blink_interval = 0;
+ render_view_host->SyncRendererPrefs();
+
render_widget_feature_->OnRenderWidgetCreated(tab_id_,
render_view_host->GetWidget());
}
« no previous file with comments | « blimp/engine/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698