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

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

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 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 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after
2108 if (render_accessibility_) { 2108 if (render_accessibility_) {
2109 // Note: this isn't called automatically by the destructor because 2109 // Note: this isn't called automatically by the destructor because
2110 // there'd be no point in calling it in frame teardown, only if there's 2110 // there'd be no point in calling it in frame teardown, only if there's
2111 // an accessibility mode change but the frame is persisting. 2111 // an accessibility mode change but the frame is persisting.
2112 render_accessibility_->DisableAccessibility(); 2112 render_accessibility_->DisableAccessibility();
2113 2113
2114 delete render_accessibility_; 2114 delete render_accessibility_;
2115 render_accessibility_ = NULL; 2115 render_accessibility_ = NULL;
2116 } 2116 }
2117 2117
2118 if (accessibility_mode_ & AccessibilityModeFlagFullTree) 2118 if (accessibility_mode_ & AccessibilityModeFlagWebContents)
2119 render_accessibility_ = new RenderAccessibilityImpl(this); 2119 render_accessibility_ = new RenderAccessibilityImpl(this);
2120 2120
2121 for (auto& observer : observers_) 2121 for (auto& observer : observers_)
2122 observer.AccessibilityModeChanged(); 2122 observer.AccessibilityModeChanged();
2123 } 2123 }
2124 2124
2125 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) { 2125 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) {
2126 AXContentTreeUpdate response; 2126 AXContentTreeUpdate response;
2127 RenderAccessibilityImpl::SnapshotAccessibilityTree(this, &response); 2127 RenderAccessibilityImpl::SnapshotAccessibilityTree(this, &response);
2128 Send(new AccessibilityHostMsg_SnapshotResponse( 2128 Send(new AccessibilityHostMsg_SnapshotResponse(
(...skipping 4535 matching lines...) Expand 10 before | Expand all | Expand 10 after
6664 // event target. Potentially a Pepper plugin will receive the event. 6664 // event target. Potentially a Pepper plugin will receive the event.
6665 // In order to tell whether a plugin gets the last mouse event and which it 6665 // In order to tell whether a plugin gets the last mouse event and which it
6666 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6666 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6667 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6667 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6668 // |pepper_last_mouse_event_target_|. 6668 // |pepper_last_mouse_event_target_|.
6669 pepper_last_mouse_event_target_ = nullptr; 6669 pepper_last_mouse_event_target_ = nullptr;
6670 #endif 6670 #endif
6671 } 6671 }
6672 6672
6673 } // namespace content 6673 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698