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

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

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 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // RenderWidgetHostViewBase implementation. 92 // RenderWidgetHostViewBase implementation.
93 void InitAsPopup(RenderWidgetHostView* parent_host_view, 93 void InitAsPopup(RenderWidgetHostView* parent_host_view,
94 const gfx::Rect& bounds) override; 94 const gfx::Rect& bounds) override;
95 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 95 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
96 void UpdateCursor(const WebCursor& cursor) override; 96 void UpdateCursor(const WebCursor& cursor) override;
97 void SetIsLoading(bool is_loading) override; 97 void SetIsLoading(bool is_loading) override;
98 void RenderProcessGone(base::TerminationStatus status, 98 void RenderProcessGone(base::TerminationStatus status,
99 int error_code) override; 99 int error_code) override;
100 void Destroy() override; 100 void Destroy() override;
101 void SetTooltipText(const base::string16& tooltip_text) override; 101 void SetTooltipText(const base::string16& tooltip_text) override;
102 void SelectionChanged(const base::string16& text,
103 size_t offset,
104 const gfx::Range& range) override;
105 void CopyFromCompositingSurface( 102 void CopyFromCompositingSurface(
106 const gfx::Rect& src_subrect, 103 const gfx::Rect& src_subrect,
107 const gfx::Size& dst_size, 104 const gfx::Size& dst_size,
108 const ReadbackRequestCallback& callback, 105 const ReadbackRequestCallback& callback,
109 const SkColorType preferred_color_type) override; 106 const SkColorType preferred_color_type) override;
110 void CopyFromCompositingSurfaceToVideoFrame( 107 void CopyFromCompositingSurfaceToVideoFrame(
111 const gfx::Rect& src_subrect, 108 const gfx::Rect& src_subrect,
112 const scoped_refptr<media::VideoFrame>& target, 109 const scoped_refptr<media::VideoFrame>& target,
113 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; 110 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
114 bool CanCopyToVideoFrame() const override; 111 bool CanCopyToVideoFrame() const override;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // The surface client ID of the parent RenderWidgetHostView. 0 if none. 233 // The surface client ID of the parent RenderWidgetHostView. 0 if none.
237 uint32_t parent_surface_client_id_; 234 uint32_t parent_surface_client_id_;
238 235
239 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 236 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
240 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 237 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
241 }; 238 };
242 239
243 } // namespace content 240 } // namespace content
244 241
245 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 242 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698