OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |