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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 212 |
213 // Removes the given accessibility mode from the current accessibility | 213 // Removes the given accessibility mode from the current accessibility |
214 // mode bitmap, managing the bits that are shared with other modes such | 214 // mode bitmap, managing the bits that are shared with other modes such |
215 // that a bit will only be turned off when all modes that depend on it | 215 // that a bit will only be turned off when all modes that depend on it |
216 // have been removed. | 216 // have been removed. |
217 void RemoveAccessibilityMode(AccessibilityMode mode); | 217 void RemoveAccessibilityMode(AccessibilityMode mode); |
218 | 218 |
219 // Request a one-time snapshot of the accessibility tree without changing | 219 // Request a one-time snapshot of the accessibility tree without changing |
220 // the accessibility mode. | 220 // the accessibility mode. |
221 using AXTreeSnapshotCallback = | 221 using AXTreeSnapshotCallback = |
222 base::Callback<void(const ui::AXTreeUpdate<ui::AXNodeData>&)>; | 222 base::Callback<void( |
| 223 const ui::AXTreeUpdate&)>; |
223 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); | 224 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); |
224 | 225 |
225 // WebContents ------------------------------------------------------ | 226 // WebContents ------------------------------------------------------ |
226 WebContentsDelegate* GetDelegate() override; | 227 WebContentsDelegate* GetDelegate() override; |
227 void SetDelegate(WebContentsDelegate* delegate) override; | 228 void SetDelegate(WebContentsDelegate* delegate) override; |
228 NavigationControllerImpl& GetController() override; | 229 NavigationControllerImpl& GetController() override; |
229 const NavigationControllerImpl& GetController() const override; | 230 const NavigationControllerImpl& GetController() const override; |
230 BrowserContext* GetBrowserContext() const override; | 231 BrowserContext* GetBrowserContext() const override; |
231 const GURL& GetURL() const override; | 232 const GURL& GetURL() const override; |
232 const GURL& GetVisibleURL() const override; | 233 const GURL& GetVisibleURL() const override; |
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 // Adds/removes a callback called on creation of each new WebContents. | 1329 // Adds/removes a callback called on creation of each new WebContents. |
1329 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1330 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1330 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1331 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1331 | 1332 |
1332 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1333 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1333 }; | 1334 }; |
1334 | 1335 |
1335 } // namespace content | 1336 } // namespace content |
1336 | 1337 |
1337 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1338 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |