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

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 1600953003: Move find-in-page code from RenderView to RenderFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 virtual ServiceRegistry* GetServiceRegistry() = 0; 181 virtual ServiceRegistry* GetServiceRegistry() = 0;
182 182
183 // Returns the visibility state of the frame. The different visibility states 183 // Returns the visibility state of the frame. The different visibility states
184 // of a frame are defined in Blink. 184 // of a frame are defined in Blink.
185 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; 185 virtual blink::WebPageVisibilityState GetVisibilityState() = 0;
186 186
187 // Returns whether the RenderFrame in the renderer process has been created 187 // Returns whether the RenderFrame in the renderer process has been created
188 // and still has a connection. This is valid for all frames. 188 // and still has a connection. This is valid for all frames.
189 virtual bool IsRenderFrameLive() = 0; 189 virtual bool IsRenderFrameLive() = 0;
190 190
191 private: 191 #if defined(OS_ANDROID)
192 // Selects and zooms to the find result nearest to the point (x,y)
193 // defined in find-in-page coordinates.
194 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0;
195
196 // Asks the renderer to send the rects of the current find matches.
nasko 2016/01/20 21:43:32 nit: s/renderer/renderer process/.
paulmeyer 2016/01/20 22:54:14 Ah... I've seen these used interchangeably all ove
nasko 2016/01/20 23:38:26 The rule of thumb we try to use is "renderer proce
197 virtual void RequestFindMatchRects(int current_version) = 0;
198 #endif
199
200 private:
192 // This interface should only be implemented inside content. 201 // This interface should only be implemented inside content.
193 friend class RenderFrameHostImpl; 202 friend class RenderFrameHostImpl;
194 RenderFrameHost() {} 203 RenderFrameHost() {}
195 }; 204 };
196 205
197 } // namespace content 206 } // namespace content
198 207
199 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 208 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698