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

Side by Side Diff: content/renderer/render_frame_impl.cc

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
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 if (render_accessibility_) { 2113 if (render_accessibility_) {
2114 // Note: this isn't called automatically by the destructor because 2114 // Note: this isn't called automatically by the destructor because
2115 // there'd be no point in calling it in frame teardown, only if there's 2115 // there'd be no point in calling it in frame teardown, only if there's
2116 // an accessibility mode change but the frame is persisting. 2116 // an accessibility mode change but the frame is persisting.
2117 render_accessibility_->DisableAccessibility(); 2117 render_accessibility_->DisableAccessibility();
2118 2118
2119 delete render_accessibility_; 2119 delete render_accessibility_;
2120 render_accessibility_ = NULL; 2120 render_accessibility_ = NULL;
2121 } 2121 }
2122 2122
2123 if (accessibility_mode_ & AccessibilityModeFlagFullTree) 2123 if (accessibility_mode_ & ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS)
2124 render_accessibility_ = new RenderAccessibilityImpl(this); 2124 render_accessibility_ = new RenderAccessibilityImpl(this);
2125 2125
2126 for (auto& observer : observers_) 2126 for (auto& observer : observers_)
2127 observer.AccessibilityModeChanged(); 2127 observer.AccessibilityModeChanged();
2128 } 2128 }
2129 2129
2130 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) { 2130 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) {
2131 AXContentTreeUpdate response; 2131 AXContentTreeUpdate response;
2132 RenderAccessibilityImpl::SnapshotAccessibilityTree(this, &response); 2132 RenderAccessibilityImpl::SnapshotAccessibilityTree(this, &response);
2133 Send(new AccessibilityHostMsg_SnapshotResponse( 2133 Send(new AccessibilityHostMsg_SnapshotResponse(
(...skipping 4547 matching lines...) Expand 10 before | Expand all | Expand 10 after
6681 // event target. Potentially a Pepper plugin will receive the event. 6681 // event target. Potentially a Pepper plugin will receive the event.
6682 // In order to tell whether a plugin gets the last mouse event and which it 6682 // In order to tell whether a plugin gets the last mouse event and which it
6683 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6683 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6684 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6684 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6685 // |pepper_last_mouse_event_target_|. 6685 // |pepper_last_mouse_event_target_|.
6686 pepper_last_mouse_event_target_ = nullptr; 6686 pepper_last_mouse_event_target_ = nullptr;
6687 #endif 6687 #endif
6688 } 6688 }
6689 6689
6690 } // namespace content 6690 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698