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

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

Issue 2558933002: Add more fine-grained accessibility modes. (Closed)
Patch Set: Rename constants Created 4 years 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 void WasOccluded(); 219 void WasOccluded();
220 void WasUnOccluded(); 220 void WasUnOccluded();
221 221
222 // Broadcasts the mode change to all frames. 222 // Broadcasts the mode change to all frames.
223 void SetAccessibilityMode(AccessibilityMode mode); 223 void SetAccessibilityMode(AccessibilityMode mode);
224 224
225 // Adds the given accessibility mode to the current accessibility mode 225 // Adds the given accessibility mode to the current accessibility mode
226 // bitmap. 226 // bitmap.
227 void AddAccessibilityMode(AccessibilityMode mode); 227 void AddAccessibilityMode(AccessibilityMode mode);
228 228
229 // Removes the given accessibility mode from the current accessibility
230 // mode bitmap, managing the bits that are shared with other modes such
231 // that a bit will only be turned off when all modes that depend on it
232 // have been removed.
233 void RemoveAccessibilityMode(AccessibilityMode mode);
234
235 // Request a one-time snapshot of the accessibility tree without changing 229 // Request a one-time snapshot of the accessibility tree without changing
236 // the accessibility mode. 230 // the accessibility mode.
237 using AXTreeSnapshotCallback = 231 using AXTreeSnapshotCallback =
238 base::Callback<void( 232 base::Callback<void(
239 const ui::AXTreeUpdate&)>; 233 const ui::AXTreeUpdate&)>;
240 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); 234 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback);
241 235
242 // Set a temporary zoom level for the frames associated with this WebContents. 236 // Set a temporary zoom level for the frames associated with this WebContents.
243 // If |is_temporary| is true, we are setting a new temporary zoom level, 237 // If |is_temporary| is true, we are setting a new temporary zoom level,
244 // otherwise we are clearing a previously set temporary zoom level. 238 // otherwise we are clearing a previously set temporary zoom level.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 void ClosePage() override; 282 void ClosePage() override;
289 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override; 283 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override;
290 SkColor GetThemeColor() const override; 284 SkColor GetThemeColor() const override;
291 std::unique_ptr<WebUI> CreateSubframeWebUI( 285 std::unique_ptr<WebUI> CreateSubframeWebUI(
292 const GURL& url, 286 const GURL& url,
293 const std::string& frame_name) override; 287 const std::string& frame_name) override;
294 WebUI* GetWebUI() const override; 288 WebUI* GetWebUI() const override;
295 WebUI* GetCommittedWebUI() const override; 289 WebUI* GetCommittedWebUI() const override;
296 void SetUserAgentOverride(const std::string& override) override; 290 void SetUserAgentOverride(const std::string& override) override;
297 const std::string& GetUserAgentOverride() const override; 291 const std::string& GetUserAgentOverride() const override;
298 void EnableTreeOnlyAccessibilityMode() override; 292 void EnableWebContentsOnlyAccessibilityMode() override;
299 bool IsTreeOnlyAccessibilityModeForTesting() const override; 293 bool IsWebContentsOnlyAccessibilityModeForTesting() const override;
300 bool IsFullAccessibilityModeForTesting() const override; 294 bool IsFullAccessibilityModeForTesting() const override;
301 const PageImportanceSignals& GetPageImportanceSignals() const override; 295 const PageImportanceSignals& GetPageImportanceSignals() const override;
302 const base::string16& GetTitle() const override; 296 const base::string16& GetTitle() const override;
303 void UpdateTitleForEntry(NavigationEntry* entry, 297 void UpdateTitleForEntry(NavigationEntry* entry,
304 const base::string16& title) override; 298 const base::string16& title) override;
305 SiteInstanceImpl* GetSiteInstance() const override; 299 SiteInstanceImpl* GetSiteInstance() const override;
306 SiteInstanceImpl* GetPendingSiteInstance() const override; 300 SiteInstanceImpl* GetPendingSiteInstance() const override;
307 bool IsLoading() const override; 301 bool IsLoading() const override;
308 bool IsLoadingToDifferentDocument() const override; 302 bool IsLoadingToDifferentDocument() const override;
309 bool IsWaitingForResponse() const override; 303 bool IsWaitingForResponse() const override;
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 // Adds/removes a callback called on creation of each new WebContents. 1485 // Adds/removes a callback called on creation of each new WebContents.
1492 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1486 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1493 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1487 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1494 1488
1495 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1489 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1496 }; 1490 };
1497 1491
1498 } // namespace content 1492 } // namespace content
1499 1493
1500 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1494 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698