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 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 web_user_media_client_(NULL), | 1097 web_user_media_client_(NULL), |
1098 #if defined(OS_ANDROID) | 1098 #if defined(OS_ANDROID) |
1099 media_player_manager_(NULL), | 1099 media_player_manager_(NULL), |
1100 #endif | 1100 #endif |
1101 media_surface_manager_(nullptr), | 1101 media_surface_manager_(nullptr), |
1102 devtools_agent_(nullptr), | 1102 devtools_agent_(nullptr), |
1103 presentation_dispatcher_(NULL), | 1103 presentation_dispatcher_(NULL), |
1104 push_messaging_client_(NULL), | 1104 push_messaging_client_(NULL), |
1105 screen_orientation_dispatcher_(NULL), | 1105 screen_orientation_dispatcher_(NULL), |
1106 manifest_manager_(NULL), | 1106 manifest_manager_(NULL), |
1107 accessibility_mode_(AccessibilityModeOff), | |
1108 render_accessibility_(NULL), | 1107 render_accessibility_(NULL), |
1109 media_player_delegate_(NULL), | 1108 media_player_delegate_(NULL), |
1110 previews_state_(PREVIEWS_UNSPECIFIED), | 1109 previews_state_(PREVIEWS_UNSPECIFIED), |
1111 effective_connection_type_( | 1110 effective_connection_type_( |
1112 blink::WebEffectiveConnectionType::TypeUnknown), | 1111 blink::WebEffectiveConnectionType::TypeUnknown), |
1113 is_pasting_(false), | 1112 is_pasting_(false), |
1114 suppress_further_dialogs_(false), | 1113 suppress_further_dialogs_(false), |
1115 blame_context_(nullptr), | 1114 blame_context_(nullptr), |
1116 #if BUILDFLAG(ENABLE_PLUGINS) | 1115 #if BUILDFLAG(ENABLE_PLUGINS) |
1117 focused_pepper_plugin_(nullptr), | 1116 focused_pepper_plugin_(nullptr), |
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2130 if (render_accessibility_) { | 2129 if (render_accessibility_) { |
2131 // Note: this isn't called automatically by the destructor because | 2130 // Note: this isn't called automatically by the destructor because |
2132 // there'd be no point in calling it in frame teardown, only if there's | 2131 // there'd be no point in calling it in frame teardown, only if there's |
2133 // an accessibility mode change but the frame is persisting. | 2132 // an accessibility mode change but the frame is persisting. |
2134 render_accessibility_->DisableAccessibility(); | 2133 render_accessibility_->DisableAccessibility(); |
2135 | 2134 |
2136 delete render_accessibility_; | 2135 delete render_accessibility_; |
2137 render_accessibility_ = NULL; | 2136 render_accessibility_ = NULL; |
2138 } | 2137 } |
2139 | 2138 |
2140 if (accessibility_mode_ & ACCESSIBILITY_MODE_FLAG_WEB_CONTENTS) { | 2139 if (accessibility_mode_.has_mode(AccessibilityMode::kWebContents)) { |
2141 render_accessibility_ = new RenderAccessibilityImpl( | 2140 render_accessibility_ = new RenderAccessibilityImpl( |
2142 this, accessibility_mode_); | 2141 this, accessibility_mode_); |
2143 } | 2142 } |
2144 | 2143 |
2145 for (auto& observer : observers_) | 2144 for (auto& observer : observers_) |
2146 observer.AccessibilityModeChanged(); | 2145 observer.AccessibilityModeChanged(); |
2147 } | 2146 } |
2148 | 2147 |
2149 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) { | 2148 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) { |
2150 AXContentTreeUpdate response; | 2149 AXContentTreeUpdate response; |
(...skipping 4743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6894 // event target. Potentially a Pepper plugin will receive the event. | 6893 // event target. Potentially a Pepper plugin will receive the event. |
6895 // In order to tell whether a plugin gets the last mouse event and which it | 6894 // In order to tell whether a plugin gets the last mouse event and which it |
6896 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6895 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6897 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6896 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6898 // |pepper_last_mouse_event_target_|. | 6897 // |pepper_last_mouse_event_target_|. |
6899 pepper_last_mouse_event_target_ = nullptr; | 6898 pepper_last_mouse_event_target_ = nullptr; |
6900 #endif | 6899 #endif |
6901 } | 6900 } |
6902 | 6901 |
6903 } // namespace content | 6902 } // namespace content |
OLD | NEW |