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

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

Issue 2571583008: Support tracking focused element for OOPIFs. (Closed)
Patch Set: Do not call ScrollFocusedEditableNodeIntoRect for OOPIFs. Created 3 years, 12 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 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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
1488 1489
1490 void RenderWidgetHostImpl::OnFocusedNodeTouched(bool editable) {
1491 if (delegate_)
1492 delegate_->FocusedNodeTouched(editable);
1493 }
1494
1489 void RenderWidgetHostImpl::OnStartDragging( 1495 void RenderWidgetHostImpl::OnStartDragging(
1490 const DropData& drop_data, 1496 const DropData& drop_data,
1491 blink::WebDragOperationsMask drag_operations_mask, 1497 blink::WebDragOperationsMask drag_operations_mask,
1492 const SkBitmap& bitmap, 1498 const SkBitmap& bitmap,
1493 const gfx::Vector2d& bitmap_offset_in_dip, 1499 const gfx::Vector2d& bitmap_offset_in_dip,
1494 const DragEventSourceInfo& event_info) { 1500 const DragEventSourceInfo& event_info) {
1495 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); 1501 RenderViewHostDelegateView* view = delegate_->GetDelegateView();
1496 if (!view) { 1502 if (!view) {
1497 // Need to clear drag and drop state in blink. 1503 // Need to clear drag and drop state in blink.
1498 DragSourceSystemDragEnded(); 1504 DragSourceSystemDragEnded();
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
2506 // different from the receiver's. 2512 // different from the receiver's.
2507 file_system_file.url = 2513 file_system_file.url =
2508 GURL(storage::GetIsolatedFileSystemRootURIString( 2514 GURL(storage::GetIsolatedFileSystemRootURIString(
2509 file_system_url.origin(), filesystem_id, std::string()) 2515 file_system_url.origin(), filesystem_id, std::string())
2510 .append(register_name)); 2516 .append(register_name));
2511 file_system_file.filesystem_id = filesystem_id; 2517 file_system_file.filesystem_id = filesystem_id;
2512 } 2518 }
2513 } 2519 }
2514 2520
2515 } // namespace content 2521 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698