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

Side by Side Diff: Source/web/WebLocalFrameImpl.cpp

Issue 495763005: Switch to using accessibilityEnabled and inlineTextBoxAccessibilityEnabled from settings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make WebAXObject methods noops Created 6 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClien t) 554 void WebLocalFrameImpl::setPermissionClient(WebPermissionClient* permissionClien t)
555 { 555 {
556 m_permissionClient = permissionClient; 556 m_permissionClient = permissionClient;
557 } 557 }
558 558
559 void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor yClient* client) 559 void WebLocalFrameImpl::setSharedWorkerRepositoryClient(WebSharedWorkerRepositor yClient* client)
560 { 560 {
561 m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(cl ient); 561 m_sharedWorkerRepositoryClient = SharedWorkerRepositoryClientImpl::create(cl ient);
562 } 562 }
563 563
564 void WebLocalFrameImpl::setAccessibilityEnabled(bool enabled)
565 {
566 if (!frame())
567 return;
568 if (!frame()->settings())
569 return;
570 frame()->settings()->setAccessibilityEnabled(enabled);
571 }
572
573 void WebLocalFrameImpl::setInlineTextBoxAccessibilityEnabled(bool enabled)
574 {
575 if (!frame())
576 return;
577 if (!frame()->settings())
578 return;
579 fprintf(stderr, "setting inline text box accessibility to %d\n", enabled);
580 frame()->settings()->setInlineTextBoxAccessibilityEnabled(enabled);
581 }
abarth-chromium 2014/08/23 05:59:11 These aren't needed.
aboxhall 2014/08/27 15:26:33 Done.
582
564 WebSize WebLocalFrameImpl::scrollOffset() const 583 WebSize WebLocalFrameImpl::scrollOffset() const
565 { 584 {
566 FrameView* view = frameView(); 585 FrameView* view = frameView();
567 if (!view) 586 if (!view)
568 return WebSize(); 587 return WebSize();
569 return view->scrollOffset(); 588 return view->scrollOffset();
570 } 589 }
571 590
572 WebSize WebLocalFrameImpl::minimumScrollOffset() const 591 WebSize WebLocalFrameImpl::minimumScrollOffset() const
573 { 592 {
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 1889
1871 void WebLocalFrameImpl::invalidateAll() const 1890 void WebLocalFrameImpl::invalidateAll() const
1872 { 1891 {
1873 ASSERT(frame() && frame()->view()); 1892 ASSERT(frame() && frame()->view());
1874 FrameView* view = frame()->view(); 1893 FrameView* view = frame()->view();
1875 view->invalidateRect(view->frameRect()); 1894 view->invalidateRect(view->frameRect());
1876 invalidateScrollbar(); 1895 invalidateScrollbar();
1877 } 1896 }
1878 1897
1879 } // namespace blink 1898 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698