| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // Adds the given accessibility mode to the current accessibility mode | 198 // Adds the given accessibility mode to the current accessibility mode |
| 199 // bitmap. | 199 // bitmap. |
| 200 void AddAccessibilityMode(AccessibilityMode mode); | 200 void AddAccessibilityMode(AccessibilityMode mode); |
| 201 | 201 |
| 202 // Removes the given accessibility mode from the current accessibility | 202 // Removes the given accessibility mode from the current accessibility |
| 203 // mode bitmap, managing the bits that are shared with other modes such | 203 // mode bitmap, managing the bits that are shared with other modes such |
| 204 // that a bit will only be turned off when all modes that depend on it | 204 // that a bit will only be turned off when all modes that depend on it |
| 205 // have been removed. | 205 // have been removed. |
| 206 void RemoveAccessibilityMode(AccessibilityMode mode); | 206 void RemoveAccessibilityMode(AccessibilityMode mode); |
| 207 | 207 |
| 208 // Request a one-time snapshot of the accessibility tree without changing |
| 209 // the accessibility mode. |
| 210 typedef base::Callback<void(const ui::AXTreeUpdate&)> |
| 211 AXTreeSnapshotCallback; |
| 212 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); |
| 213 |
| 208 // Clear the navigation transition data when the user navigates back to Chrome | 214 // Clear the navigation transition data when the user navigates back to Chrome |
| 209 // from a native app. | 215 // from a native app. |
| 210 void ClearNavigationTransitionData(); | 216 void ClearNavigationTransitionData(); |
| 211 | 217 |
| 212 // WebContents ------------------------------------------------------ | 218 // WebContents ------------------------------------------------------ |
| 213 WebContentsDelegate* GetDelegate() override; | 219 WebContentsDelegate* GetDelegate() override; |
| 214 void SetDelegate(WebContentsDelegate* delegate) override; | 220 void SetDelegate(WebContentsDelegate* delegate) override; |
| 215 NavigationControllerImpl& GetController() override; | 221 NavigationControllerImpl& GetController() override; |
| 216 const NavigationControllerImpl& GetController() const override; | 222 const NavigationControllerImpl& GetController() const override; |
| 217 BrowserContext* GetBrowserContext() const override; | 223 BrowserContext* GetBrowserContext() const override; |
| (...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 // Adds/removes a callback called on creation of each new WebContents. | 1288 // Adds/removes a callback called on creation of each new WebContents. |
| 1283 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1289 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1284 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1290 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1285 | 1291 |
| 1286 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1292 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1287 }; | 1293 }; |
| 1288 | 1294 |
| 1289 } // namespace content | 1295 } // namespace content |
| 1290 | 1296 |
| 1291 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1297 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |