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

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

Issue 2041493002: Support tooltips in GuestViews with "--use-cross-process-frames-for-guests" flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // RenderWidgetHostInputEventRouter afterwards. 287 // RenderWidgetHostInputEventRouter afterwards.
288 NotifyObserversAboutShutdown(); 288 NotifyObserversAboutShutdown();
289 289
290 host_->SetView(nullptr); 290 host_->SetView(nullptr);
291 host_ = nullptr; 291 host_ = nullptr;
292 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); 292 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
293 } 293 }
294 294
295 void RenderWidgetHostViewChildFrame::SetTooltipText( 295 void RenderWidgetHostViewChildFrame::SetTooltipText(
296 const base::string16& tooltip_text) { 296 const base::string16& tooltip_text) {
297 frame_connector_->GetRootRenderWidgetHostView()->SetTooltipText(tooltip_text);
297 } 298 }
298 299
299 void RenderWidgetHostViewChildFrame::SelectionChanged( 300 void RenderWidgetHostViewChildFrame::SelectionChanged(
300 const base::string16& text, 301 const base::string16& text,
301 size_t offset, 302 size_t offset,
302 const gfx::Range& range) { 303 const gfx::Range& range) {
303 } 304 }
304 305
305 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged( 306 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged(
306 const ViewHostMsg_SelectionBounds_Params& params) { 307 const ViewHostMsg_SelectionBounds_Params& params) {
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 686
686 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { 687 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const {
687 return true; 688 return true;
688 } 689 }
689 690
690 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { 691 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const {
691 return surface_id_; 692 return surface_id_;
692 }; 693 };
693 694
694 } // namespace content 695 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698