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

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

Issue 8907016: Spellchecker should recheck after changing language. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Patch Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_widget_host.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_widget_host.h" 5 #include "content/browser/renderer_host/render_widget_host.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 1497
1498 void RenderWidgetHost::Delete() { 1498 void RenderWidgetHost::Delete() {
1499 Send(new ViewMsg_Delete(routing_id())); 1499 Send(new ViewMsg_Delete(routing_id()));
1500 content::RecordAction(UserMetricsAction("DeleteSelection")); 1500 content::RecordAction(UserMetricsAction("DeleteSelection"));
1501 } 1501 }
1502 1502
1503 void RenderWidgetHost::SelectAll() { 1503 void RenderWidgetHost::SelectAll() {
1504 Send(new ViewMsg_SelectAll(routing_id())); 1504 Send(new ViewMsg_SelectAll(routing_id()));
1505 content::RecordAction(UserMetricsAction("SelectAll")); 1505 content::RecordAction(UserMetricsAction("SelectAll"));
1506 } 1506 }
1507
1508 void RenderWidgetHost::RequestTextChecking() {
1509 Send(new ViewMsg_TextChecking(routing_id()));
1510 }
1511
1507 bool RenderWidgetHost::GotResponseToLockMouseRequest(bool allowed) { 1512 bool RenderWidgetHost::GotResponseToLockMouseRequest(bool allowed) {
1508 if (!allowed) { 1513 if (!allowed) {
1509 RejectMouseLockOrUnlockIfNecessary(); 1514 RejectMouseLockOrUnlockIfNecessary();
1510 return false; 1515 return false;
1511 } else { 1516 } else {
1512 if (!pending_mouse_lock_request_) { 1517 if (!pending_mouse_lock_request_) {
1513 // This is possible, e.g., the plugin sends us an unlock request before 1518 // This is possible, e.g., the plugin sends us an unlock request before
1514 // the user allows to lock to mouse. 1519 // the user allows to lock to mouse.
1515 return false; 1520 return false;
1516 } 1521 }
(...skipping 16 matching lines...) Expand all
1533 ui_shim->Send(new AcceleratedSurfaceMsg_BuffersSwappedACK(route_id)); 1538 ui_shim->Send(new AcceleratedSurfaceMsg_BuffersSwappedACK(route_id));
1534 } 1539 }
1535 1540
1536 // static 1541 // static
1537 void RenderWidgetHost::AcknowledgePostSubBuffer(int32 route_id, 1542 void RenderWidgetHost::AcknowledgePostSubBuffer(int32 route_id,
1538 int gpu_host_id) { 1543 int gpu_host_id) {
1539 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id); 1544 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id);
1540 if (ui_shim) 1545 if (ui_shim)
1541 ui_shim->Send(new AcceleratedSurfaceMsg_PostSubBufferACK(route_id)); 1546 ui_shim->Send(new AcceleratedSurfaceMsg_PostSubBufferACK(route_id));
1542 } 1547 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698