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

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

Issue 2558933002: Add more fine-grained accessibility modes. (Closed)
Patch Set: Reformat enums as uppercase 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 void ClosePage() override; 281 void ClosePage() override;
288 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override; 282 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override;
289 SkColor GetThemeColor() const override; 283 SkColor GetThemeColor() const override;
290 std::unique_ptr<WebUI> CreateSubframeWebUI( 284 std::unique_ptr<WebUI> CreateSubframeWebUI(
291 const GURL& url, 285 const GURL& url,
292 const std::string& frame_name) override; 286 const std::string& frame_name) override;
293 WebUI* GetWebUI() const override; 287 WebUI* GetWebUI() const override;
294 WebUI* GetCommittedWebUI() const override; 288 WebUI* GetCommittedWebUI() const override;
295 void SetUserAgentOverride(const std::string& override) override; 289 void SetUserAgentOverride(const std::string& override) override;
296 const std::string& GetUserAgentOverride() const override; 290 const std::string& GetUserAgentOverride() const override;
297 void EnableTreeOnlyAccessibilityMode() override; 291 void EnableWebContentsOnlyAccessibilityMode() override;
298 bool IsTreeOnlyAccessibilityModeForTesting() const override; 292 bool IsWebContentsOnlyAccessibilityModeForTesting() const override;
299 bool IsFullAccessibilityModeForTesting() const override; 293 bool IsFullAccessibilityModeForTesting() const override;
300 const PageImportanceSignals& GetPageImportanceSignals() const override; 294 const PageImportanceSignals& GetPageImportanceSignals() const override;
301 const base::string16& GetTitle() const override; 295 const base::string16& GetTitle() const override;
302 void UpdateTitleForEntry(NavigationEntry* entry, 296 void UpdateTitleForEntry(NavigationEntry* entry,
303 const base::string16& title) override; 297 const base::string16& title) override;
304 SiteInstanceImpl* GetSiteInstance() const override; 298 SiteInstanceImpl* GetSiteInstance() const override;
305 SiteInstanceImpl* GetPendingSiteInstance() const override; 299 SiteInstanceImpl* GetPendingSiteInstance() const override;
306 bool IsLoading() const override; 300 bool IsLoading() const override;
307 bool IsLoadingToDifferentDocument() const override; 301 bool IsLoadingToDifferentDocument() const override;
308 bool IsWaitingForResponse() const override; 302 bool IsWaitingForResponse() const override;
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 // Adds/removes a callback called on creation of each new WebContents. 1488 // Adds/removes a callback called on creation of each new WebContents.
1495 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1489 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1496 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1490 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1497 1491
1498 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1492 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1499 }; 1493 };
1500 1494
1501 } // namespace content 1495 } // namespace content
1502 1496
1503 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1497 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698