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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1051923003: Add a WebContentsImpl API to snapshot the accessibility tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up callbacks before end of OnRenderProcessGone Created 5 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Adds the given accessibility mode to the current accessibility mode 200 // Adds the given accessibility mode to the current accessibility mode
201 // bitmap. 201 // bitmap.
202 void AddAccessibilityMode(AccessibilityMode mode); 202 void AddAccessibilityMode(AccessibilityMode mode);
203 203
204 // Removes the given accessibility mode from the current accessibility 204 // Removes the given accessibility mode from the current accessibility
205 // mode bitmap, managing the bits that are shared with other modes such 205 // mode bitmap, managing the bits that are shared with other modes such
206 // that a bit will only be turned off when all modes that depend on it 206 // that a bit will only be turned off when all modes that depend on it
207 // have been removed. 207 // have been removed.
208 void RemoveAccessibilityMode(AccessibilityMode mode); 208 void RemoveAccessibilityMode(AccessibilityMode mode);
209 209
210 // Request a one-time snapshot of the accessibility tree without changing
211 // the accessibility mode.
212 typedef base::Callback<void(const ui::AXTreeUpdate&)>
213 AXTreeSnapshotCallback;
214 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback);
215
210 // Clear the navigation transition data when the user navigates back to Chrome 216 // Clear the navigation transition data when the user navigates back to Chrome
211 // from a native app. 217 // from a native app.
212 void ClearNavigationTransitionData(); 218 void ClearNavigationTransitionData();
213 219
214 // WebContents ------------------------------------------------------ 220 // WebContents ------------------------------------------------------
215 WebContentsDelegate* GetDelegate() override; 221 WebContentsDelegate* GetDelegate() override;
216 void SetDelegate(WebContentsDelegate* delegate) override; 222 void SetDelegate(WebContentsDelegate* delegate) override;
217 NavigationControllerImpl& GetController() override; 223 NavigationControllerImpl& GetController() override;
218 const NavigationControllerImpl& GetController() const override; 224 const NavigationControllerImpl& GetController() const override;
219 BrowserContext* GetBrowserContext() const override; 225 BrowserContext* GetBrowserContext() const override;
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 // Adds/removes a callback called on creation of each new WebContents. 1287 // Adds/removes a callback called on creation of each new WebContents.
1282 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1288 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1283 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1289 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1284 1290
1285 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1291 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1286 }; 1292 };
1287 1293
1288 } // namespace content 1294 } // namespace content
1289 1295
1290 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1296 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698