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