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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2130133004: Tracking text selection on the browser side in OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize/Clear TextSelection for each view + make GetTextSelection() const. Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 host_->SetView(nullptr); 285 host_->SetView(nullptr);
286 host_ = nullptr; 286 host_ = nullptr;
287 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); 287 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
288 } 288 }
289 289
290 void RenderWidgetHostViewChildFrame::SetTooltipText( 290 void RenderWidgetHostViewChildFrame::SetTooltipText(
291 const base::string16& tooltip_text) { 291 const base::string16& tooltip_text) {
292 frame_connector_->GetRootRenderWidgetHostView()->SetTooltipText(tooltip_text); 292 frame_connector_->GetRootRenderWidgetHostView()->SetTooltipText(tooltip_text);
293 } 293 }
294 294
295 void RenderWidgetHostViewChildFrame::SelectionChanged(
296 const base::string16& text,
297 size_t offset,
298 const gfx::Range& range) {
299 }
300
301 void RenderWidgetHostViewChildFrame::LockCompositingSurface() { 295 void RenderWidgetHostViewChildFrame::LockCompositingSurface() {
302 NOTIMPLEMENTED(); 296 NOTIMPLEMENTED();
303 } 297 }
304 298
305 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() { 299 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() {
306 NOTIMPLEMENTED(); 300 NOTIMPLEMENTED();
307 } 301 }
308 302
309 void RenderWidgetHostViewChildFrame::RegisterSurfaceNamespaceId() { 303 void RenderWidgetHostViewChildFrame::RegisterSurfaceNamespaceId() {
310 // If Destroy() has been called before we get here, host_ may be null. 304 // If Destroy() has been called before we get here, host_ may be null.
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 670
677 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { 671 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const {
678 return true; 672 return true;
679 } 673 }
680 674
681 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { 675 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const {
682 return surface_id_; 676 return surface_id_;
683 }; 677 };
684 678
685 } // namespace content 679 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698