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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 1203223002: [Experimental, WIP] Demo version of extracting WebView selection data from CompositorFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 } 1172 }
1173 1173
1174 void RenderViewHostImpl::OnTakeFocus(bool reverse) { 1174 void RenderViewHostImpl::OnTakeFocus(bool reverse) {
1175 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); 1175 RenderViewHostDelegateView* view = delegate_->GetDelegateView();
1176 if (view) 1176 if (view)
1177 view->TakeFocus(reverse); 1177 view->TakeFocus(reverse);
1178 } 1178 }
1179 1179
1180 void RenderViewHostImpl::OnFocusedNodeChanged( 1180 void RenderViewHostImpl::OnFocusedNodeChanged(
1181 bool is_editable_node, 1181 bool is_editable_node,
1182 bool is_plugin_node,
1182 const gfx::Rect& node_bounds_in_viewport) { 1183 const gfx::Rect& node_bounds_in_viewport) {
1183 is_focused_element_editable_ = is_editable_node; 1184 is_focused_element_editable_ = is_editable_node;
1184 if (view_) 1185 if (view_)
1185 view_->FocusedNodeChanged(is_editable_node); 1186 view_->FocusedNodeChanged(is_editable_node, is_plugin_node);
1186 #if defined(OS_WIN) 1187 #if defined(OS_WIN)
1187 if (!is_editable_node && virtual_keyboard_requested_) { 1188 if (!is_editable_node && virtual_keyboard_requested_) {
1188 virtual_keyboard_requested_ = false; 1189 virtual_keyboard_requested_ = false;
1189 delegate_->SetIsVirtualKeyboardRequested(false); 1190 delegate_->SetIsVirtualKeyboardRequested(false);
1190 BrowserThread::PostDelayedTask( 1191 BrowserThread::PostDelayedTask(
1191 BrowserThread::UI, FROM_HERE, 1192 BrowserThread::UI, FROM_HERE,
1192 base::Bind(base::IgnoreResult(&DismissVirtualKeyboardTask)), 1193 base::Bind(base::IgnoreResult(&DismissVirtualKeyboardTask)),
1193 TimeDelta::FromMilliseconds(kVirtualKeyboardDisplayWaitTimeoutMs)); 1194 TimeDelta::FromMilliseconds(kVirtualKeyboardDisplayWaitTimeoutMs));
1194 } 1195 }
1195 #endif 1196 #endif
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 if (!policy->CanReadFile(GetProcess()->GetID(), file)) 1429 if (!policy->CanReadFile(GetProcess()->GetID(), file))
1429 policy->GrantReadFile(GetProcess()->GetID(), file); 1430 policy->GrantReadFile(GetProcess()->GetID(), file);
1430 } 1431 }
1431 } 1432 }
1432 1433
1433 void RenderViewHostImpl::SelectWordAroundCaret() { 1434 void RenderViewHostImpl::SelectWordAroundCaret() {
1434 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1435 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1435 } 1436 }
1436 1437
1437 } // namespace content 1438 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698