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

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

Issue 831903004: [WebView] Add a new flushVisualState API to AwContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual void AccessibilitySetTextSelection( 86 virtual void AccessibilitySetTextSelection(
87 int acc_obj_id, int start_offset, int end_offset) = 0; 87 int acc_obj_id, int start_offset, int end_offset) = 0;
88 88
89 // This is called when the user has committed to the given find in page 89 // This is called when the user has committed to the given find in page
90 // request (e.g. by pressing enter or by clicking on the next / previous 90 // request (e.g. by pressing enter or by clicking on the next / previous
91 // result buttons). It triggers sending a native accessibility event on 91 // result buttons). It triggers sending a native accessibility event on
92 // the result object on the page, navigating assistive technology to that 92 // the result object on the page, navigating assistive technology to that
93 // result. 93 // result.
94 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; 94 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0;
95 95
96 // Roundtrips through the renderer and compositor pipeline to ensure that any
97 // changes to the contents resulting from operations executed prior to this
98 // call are visible on screen. The call completes asynchronously by running
99 // the supplied |callback| with a value of true upon successful completion and
100 // false otherwise (when the frame is destroyed, detached, etc..).
101 typedef base::Callback<void(bool)> FlushVisualStateResultCallback;
102 virtual void FlushVisualState(
103 const FlushVisualStateResultCallback& callback) = 0;
104
96 // Temporary until we get rid of RenderViewHost. 105 // Temporary until we get rid of RenderViewHost.
97 virtual RenderViewHost* GetRenderViewHost() = 0; 106 virtual RenderViewHost* GetRenderViewHost() = 0;
98 107
99 // Returns the ServiceRegistry for this frame. 108 // Returns the ServiceRegistry for this frame.
100 virtual ServiceRegistry* GetServiceRegistry() = 0; 109 virtual ServiceRegistry* GetServiceRegistry() = 0;
101 110
102 private: 111 private:
103 // This interface should only be implemented inside content. 112 // This interface should only be implemented inside content.
104 friend class RenderFrameHostImpl; 113 friend class RenderFrameHostImpl;
105 RenderFrameHost() {} 114 RenderFrameHost() {}
106 }; 115 };
107 116
108 } // namespace content 117 } // namespace content
109 118
110 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 119 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698