| 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 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 friend class RenderFrameImplTest; | 699 friend class RenderFrameImplTest; |
| 700 friend class RenderFrameObserver; | 700 friend class RenderFrameObserver; |
| 701 friend class RenderAccessibilityImplTest; | 701 friend class RenderAccessibilityImplTest; |
| 702 friend class TestRenderFrame; | 702 friend class TestRenderFrame; |
| 703 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 703 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
| 704 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 704 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
| 705 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); | 705 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); |
| 706 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); | 706 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); |
| 707 FRIEND_TEST_ALL_PREFIXES(RenderAccessibilityImplTest, | 707 FRIEND_TEST_ALL_PREFIXES(RenderAccessibilityImplTest, |
| 708 AccessibilityMessagesQueueWhileSwappedOut); | 708 AccessibilityMessagesQueueWhileSwappedOut); |
| 709 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest, ZoomLimit); | |
| 710 | 709 |
| 711 // A wrapper class used as the callback for JavaScript executed | 710 // A wrapper class used as the callback for JavaScript executed |
| 712 // in an isolated world. | 711 // in an isolated world. |
| 713 class JavaScriptIsolatedWorldRequest | 712 class JavaScriptIsolatedWorldRequest |
| 714 : public blink::WebScriptExecutionCallback { | 713 : public blink::WebScriptExecutionCallback { |
| 715 public: | 714 public: |
| 716 JavaScriptIsolatedWorldRequest( | 715 JavaScriptIsolatedWorldRequest( |
| 717 int id, | 716 int id, |
| 718 bool notify_result, | 717 bool notify_result, |
| 719 int routing_id, | 718 int routing_id, |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 // Sends a reply to the current find operation handling if it was a | 1031 // Sends a reply to the current find operation handling if it was a |
| 1033 // synchronous find request. | 1032 // synchronous find request. |
| 1034 void SendFindReply(int request_id, | 1033 void SendFindReply(int request_id, |
| 1035 int match_count, | 1034 int match_count, |
| 1036 int ordinal, | 1035 int ordinal, |
| 1037 const blink::WebRect& selection_rect, | 1036 const blink::WebRect& selection_rect, |
| 1038 bool final_status_update); | 1037 bool final_status_update); |
| 1039 | 1038 |
| 1040 void InitializeBlameContext(RenderFrameImpl* parent_frame); | 1039 void InitializeBlameContext(RenderFrameImpl* parent_frame); |
| 1041 | 1040 |
| 1042 void OnGotZoomLevel(const GURL& url, double zoom_level); | |
| 1043 | |
| 1044 // Stores the WebLocalFrame we are associated with. This is null from the | 1041 // Stores the WebLocalFrame we are associated with. This is null from the |
| 1045 // constructor until BindToWebFrame is called, and it is null after | 1042 // constructor until BindToWebFrame is called, and it is null after |
| 1046 // frameDetached is called until destruction (which is asynchronous in the | 1043 // frameDetached is called until destruction (which is asynchronous in the |
| 1047 // case of the main frame, but not subframes). | 1044 // case of the main frame, but not subframes). |
| 1048 blink::WebLocalFrame* frame_; | 1045 blink::WebLocalFrame* frame_; |
| 1049 | 1046 |
| 1050 // Boolean value indicating whether this RenderFrameImpl object is for the | 1047 // Boolean value indicating whether this RenderFrameImpl object is for the |
| 1051 // main frame or not. It remains accurate during destruction, even when | 1048 // main frame or not. It remains accurate during destruction, even when |
| 1052 // |frame_| has been invalidated. | 1049 // |frame_| has been invalidated. |
| 1053 bool is_main_frame_; | 1050 bool is_main_frame_; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 AccessibilityMode accessibility_mode_; | 1220 AccessibilityMode accessibility_mode_; |
| 1224 | 1221 |
| 1225 // Only valid if |accessibility_mode_| is anything other than | 1222 // Only valid if |accessibility_mode_| is anything other than |
| 1226 // AccessibilityModeOff. | 1223 // AccessibilityModeOff. |
| 1227 RenderAccessibilityImpl* render_accessibility_; | 1224 RenderAccessibilityImpl* render_accessibility_; |
| 1228 | 1225 |
| 1229 std::unique_ptr<blink::WebAppBannerClient> app_banner_client_; | 1226 std::unique_ptr<blink::WebAppBannerClient> app_banner_client_; |
| 1230 | 1227 |
| 1231 std::unique_ptr<blink::WebBluetooth> bluetooth_; | 1228 std::unique_ptr<blink::WebBluetooth> bluetooth_; |
| 1232 | 1229 |
| 1233 HostZoomLevels host_zoom_levels_; | |
| 1234 | |
| 1235 // Manages play, pause notifications for WebMediaPlayer implementations; its | 1230 // Manages play, pause notifications for WebMediaPlayer implementations; its |
| 1236 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. | 1231 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. |
| 1237 media::RendererWebMediaPlayerDelegate* media_player_delegate_; | 1232 media::RendererWebMediaPlayerDelegate* media_player_delegate_; |
| 1238 | 1233 |
| 1239 // Whether or not this RenderFrame is using Lo-Fi mode. | 1234 // Whether or not this RenderFrame is using Lo-Fi mode. |
| 1240 bool is_using_lofi_; | 1235 bool is_using_lofi_; |
| 1241 | 1236 |
| 1242 // Effective connection type when the document of this frame was fetched. | 1237 // Effective connection type when the document of this frame was fetched. |
| 1243 blink::WebEffectiveConnectionType effective_connection_type_; | 1238 blink::WebEffectiveConnectionType effective_connection_type_; |
| 1244 | 1239 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 mojom::FrameHostPtr frame_host_; | 1278 mojom::FrameHostPtr frame_host_; |
| 1284 | 1279 |
| 1285 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1280 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1286 | 1281 |
| 1287 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1282 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1288 }; | 1283 }; |
| 1289 | 1284 |
| 1290 } // namespace content | 1285 } // namespace content |
| 1291 | 1286 |
| 1292 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1287 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |