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

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

Issue 2623483003: Support tracking focused node element for OOPIFs. (Closed)
Patch Set: Added the missing forward declaration Created 3 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 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_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 OnShowDisambiguationPopup) 538 OnShowDisambiguationPopup)
539 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, 539 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged,
540 OnSelectionBoundsChanged) 540 OnSelectionBoundsChanged)
541 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCompositionRangeChanged, 541 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCompositionRangeChanged,
542 OnImeCompositionRangeChanged) 542 OnImeCompositionRangeChanged)
543 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad, 543 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad,
544 OnFirstPaintAfterLoad) 544 OnFirstPaintAfterLoad)
545 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardCompositorProto, 545 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardCompositorProto,
546 OnForwardCompositorProto) 546 OnForwardCompositorProto)
547 IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames, OnSetNeedsBeginFrames) 547 IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames, OnSetNeedsBeginFrames)
548 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeTouched, OnFocusedNodeTouched)
548 IPC_MESSAGE_HANDLER(DragHostMsg_StartDragging, OnStartDragging) 549 IPC_MESSAGE_HANDLER(DragHostMsg_StartDragging, OnStartDragging)
549 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor) 550 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor)
550 IPC_MESSAGE_UNHANDLED(handled = false) 551 IPC_MESSAGE_UNHANDLED(handled = false)
551 IPC_END_MESSAGE_MAP() 552 IPC_END_MESSAGE_MAP()
552 553
553 if (!handled && input_router_ && input_router_->OnMessageReceived(msg)) 554 if (!handled && input_router_ && input_router_->OnMessageReceived(msg))
554 return true; 555 return true;
555 556
556 if (!handled && view_ && view_->OnMessageReceived(msg)) 557 if (!handled && view_ && view_->OnMessageReceived(msg))
557 return true; 558 return true;
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 1474
1474 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { 1475 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) {
1475 if (needs_begin_frames_ == needs_begin_frames) 1476 if (needs_begin_frames_ == needs_begin_frames)
1476 return; 1477 return;
1477 1478
1478 needs_begin_frames_ = needs_begin_frames; 1479 needs_begin_frames_ = needs_begin_frames;
1479 if (view_) 1480 if (view_)
1480 view_->SetNeedsBeginFrames(needs_begin_frames); 1481 view_->SetNeedsBeginFrames(needs_begin_frames);
1481 } 1482 }
1482 1483
1484 void RenderWidgetHostImpl::OnFocusedNodeTouched(bool editable) {
1485 if (delegate_)
1486 delegate_->FocusedNodeTouched(editable);
1487 }
1488
1483 void RenderWidgetHostImpl::OnStartDragging( 1489 void RenderWidgetHostImpl::OnStartDragging(
1484 const DropData& drop_data, 1490 const DropData& drop_data,
1485 blink::WebDragOperationsMask drag_operations_mask, 1491 blink::WebDragOperationsMask drag_operations_mask,
1486 const SkBitmap& bitmap, 1492 const SkBitmap& bitmap,
1487 const gfx::Vector2d& bitmap_offset_in_dip, 1493 const gfx::Vector2d& bitmap_offset_in_dip,
1488 const DragEventSourceInfo& event_info) { 1494 const DragEventSourceInfo& event_info) {
1489 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); 1495 RenderViewHostDelegateView* view = delegate_->GetDelegateView();
1490 if (!view) { 1496 if (!view) {
1491 // Need to clear drag and drop state in blink. 1497 // Need to clear drag and drop state in blink.
1492 DragSourceSystemDragEnded(); 1498 DragSourceSystemDragEnded();
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
2502 // different from the receiver's. 2508 // different from the receiver's.
2503 file_system_file.url = 2509 file_system_file.url =
2504 GURL(storage::GetIsolatedFileSystemRootURIString( 2510 GURL(storage::GetIsolatedFileSystemRootURIString(
2505 file_system_url.origin(), filesystem_id, std::string()) 2511 file_system_url.origin(), filesystem_id, std::string())
2506 .append(register_name)); 2512 .append(register_name));
2507 file_system_file.filesystem_id = filesystem_id; 2513 file_system_file.filesystem_id = filesystem_id;
2508 } 2514 }
2509 } 2515 }
2510 2516
2511 } // namespace content 2517 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698