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

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

Issue 2571583008: Support tracking focused element for OOPIFs. (Closed)
Patch Set: Fixed some compile errors Created 4 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 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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 OnShowDisambiguationPopup) 539 OnShowDisambiguationPopup)
540 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, 540 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged,
541 OnSelectionBoundsChanged) 541 OnSelectionBoundsChanged)
542 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCompositionRangeChanged, 542 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCompositionRangeChanged,
543 OnImeCompositionRangeChanged) 543 OnImeCompositionRangeChanged)
544 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad, 544 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad,
545 OnFirstPaintAfterLoad) 545 OnFirstPaintAfterLoad)
546 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardCompositorProto, 546 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardCompositorProto,
547 OnForwardCompositorProto) 547 OnForwardCompositorProto)
548 IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames, OnSetNeedsBeginFrames) 548 IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames, OnSetNeedsBeginFrames)
549 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeTouched, OnFocusedNodeTouched)
549 IPC_MESSAGE_HANDLER(DragHostMsg_StartDragging, OnStartDragging) 550 IPC_MESSAGE_HANDLER(DragHostMsg_StartDragging, OnStartDragging)
550 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor) 551 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor)
551 IPC_MESSAGE_UNHANDLED(handled = false) 552 IPC_MESSAGE_UNHANDLED(handled = false)
552 IPC_END_MESSAGE_MAP() 553 IPC_END_MESSAGE_MAP()
553 554
554 if (!handled && input_router_ && input_router_->OnMessageReceived(msg)) 555 if (!handled && input_router_ && input_router_->OnMessageReceived(msg))
555 return true; 556 return true;
556 557
557 if (!handled && view_ && view_->OnMessageReceived(msg)) 558 if (!handled && view_ && view_->OnMessageReceived(msg))
558 return true; 559 return true;
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1477 delegate_->ForwardCompositorProto(this, proto); 1478 delegate_->ForwardCompositorProto(this, proto);
1478 } 1479 }
1479 1480
1480 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { 1481 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) {
1481 if (needs_begin_frames_ == needs_begin_frames) 1482 if (needs_begin_frames_ == needs_begin_frames)
1482 return; 1483 return;
1483 1484
1484 needs_begin_frames_ = needs_begin_frames; 1485 needs_begin_frames_ = needs_begin_frames;
1485 if (view_) 1486 if (view_)
1486 view_->SetNeedsBeginFrames(needs_begin_frames); 1487 view_->SetNeedsBeginFrames(needs_begin_frames);
1487 } 1488 }
ncarter (slow) 2016/12/16 19:17:21 add a blank line here.
EhsanK 2016/12/20 16:39:11 Done.
1489 void RenderWidgetHostImpl::OnFocusedNodeTouched(bool editable) {
1490 if (delegate_)
1491 delegate_->FocusedNodeTouched(editable);
1492 }
1488 1493
1489 void RenderWidgetHostImpl::OnStartDragging( 1494 void RenderWidgetHostImpl::OnStartDragging(
1490 const DropData& drop_data, 1495 const DropData& drop_data,
1491 blink::WebDragOperationsMask drag_operations_mask, 1496 blink::WebDragOperationsMask drag_operations_mask,
1492 const SkBitmap& bitmap, 1497 const SkBitmap& bitmap,
1493 const gfx::Vector2d& bitmap_offset_in_dip, 1498 const gfx::Vector2d& bitmap_offset_in_dip,
1494 const DragEventSourceInfo& event_info) { 1499 const DragEventSourceInfo& event_info) {
1495 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); 1500 RenderViewHostDelegateView* view = delegate_->GetDelegateView();
1496 if (!view) { 1501 if (!view) {
1497 // Need to clear drag and drop state in blink. 1502 // Need to clear drag and drop state in blink.
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
2506 // different from the receiver's. 2511 // different from the receiver's.
2507 file_system_file.url = 2512 file_system_file.url =
2508 GURL(storage::GetIsolatedFileSystemRootURIString( 2513 GURL(storage::GetIsolatedFileSystemRootURIString(
2509 file_system_url.origin(), filesystem_id, std::string()) 2514 file_system_url.origin(), filesystem_id, std::string())
2510 .append(register_name)); 2515 .append(register_name));
2511 file_system_file.filesystem_id = filesystem_id; 2516 file_system_file.filesystem_id = filesystem_id;
2512 } 2517 }
2513 } 2518 }
2514 2519
2515 } // namespace content 2520 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698