OLD | NEW |
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 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 web_user_media_client_(NULL), | 1095 web_user_media_client_(NULL), |
1096 #if defined(OS_ANDROID) | 1096 #if defined(OS_ANDROID) |
1097 media_player_manager_(NULL), | 1097 media_player_manager_(NULL), |
1098 #endif | 1098 #endif |
1099 media_surface_manager_(nullptr), | 1099 media_surface_manager_(nullptr), |
1100 devtools_agent_(nullptr), | 1100 devtools_agent_(nullptr), |
1101 presentation_dispatcher_(NULL), | 1101 presentation_dispatcher_(NULL), |
1102 push_messaging_client_(NULL), | 1102 push_messaging_client_(NULL), |
1103 screen_orientation_dispatcher_(NULL), | 1103 screen_orientation_dispatcher_(NULL), |
1104 manifest_manager_(NULL), | 1104 manifest_manager_(NULL), |
1105 accessibility_mode_(AccessibilityModeOff), | |
1106 render_accessibility_(NULL), | 1105 render_accessibility_(NULL), |
1107 media_player_delegate_(NULL), | 1106 media_player_delegate_(NULL), |
1108 previews_state_(PREVIEWS_UNSPECIFIED), | 1107 previews_state_(PREVIEWS_UNSPECIFIED), |
1109 effective_connection_type_( | 1108 effective_connection_type_( |
1110 blink::WebEffectiveConnectionType::TypeUnknown), | 1109 blink::WebEffectiveConnectionType::TypeUnknown), |
1111 is_pasting_(false), | 1110 is_pasting_(false), |
1112 suppress_further_dialogs_(false), | 1111 suppress_further_dialogs_(false), |
1113 blame_context_(nullptr), | 1112 blame_context_(nullptr), |
1114 #if BUILDFLAG(ENABLE_PLUGINS) | 1113 #if BUILDFLAG(ENABLE_PLUGINS) |
1115 focused_pepper_plugin_(nullptr), | 1114 focused_pepper_plugin_(nullptr), |
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2123 if (render_accessibility_) { | 2122 if (render_accessibility_) { |
2124 // Note: this isn't called automatically by the destructor because | 2123 // Note: this isn't called automatically by the destructor because |
2125 // there'd be no point in calling it in frame teardown, only if there's | 2124 // there'd be no point in calling it in frame teardown, only if there's |
2126 // an accessibility mode change but the frame is persisting. | 2125 // an accessibility mode change but the frame is persisting. |
2127 render_accessibility_->DisableAccessibility(); | 2126 render_accessibility_->DisableAccessibility(); |
2128 | 2127 |
2129 delete render_accessibility_; | 2128 delete render_accessibility_; |
2130 render_accessibility_ = NULL; | 2129 render_accessibility_ = NULL; |
2131 } | 2130 } |
2132 | 2131 |
2133 if (accessibility_mode_ & ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS) { | 2132 if (accessibility_mode_.has_mode(AccessibilityMode::kWebContents)) { |
2134 render_accessibility_ = new RenderAccessibilityImpl( | 2133 render_accessibility_ = new RenderAccessibilityImpl( |
2135 this, accessibility_mode_); | 2134 this, accessibility_mode_); |
2136 } | 2135 } |
2137 | 2136 |
2138 for (auto& observer : observers_) | 2137 for (auto& observer : observers_) |
2139 observer.AccessibilityModeChanged(); | 2138 observer.AccessibilityModeChanged(); |
2140 } | 2139 } |
2141 | 2140 |
2142 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) { | 2141 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) { |
2143 AXContentTreeUpdate response; | 2142 AXContentTreeUpdate response; |
(...skipping 4708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6852 // event target. Potentially a Pepper plugin will receive the event. | 6851 // event target. Potentially a Pepper plugin will receive the event. |
6853 // In order to tell whether a plugin gets the last mouse event and which it | 6852 // In order to tell whether a plugin gets the last mouse event and which it |
6854 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6853 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6855 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6854 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6856 // |pepper_last_mouse_event_target_|. | 6855 // |pepper_last_mouse_event_target_|. |
6857 pepper_last_mouse_event_target_ = nullptr; | 6856 pepper_last_mouse_event_target_ = nullptr; |
6858 #endif | 6857 #endif |
6859 } | 6858 } |
6860 | 6859 |
6861 } // namespace content | 6860 } // namespace content |
OLD | NEW |