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

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

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 5 months 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 #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 26 matching lines...) Expand all
37 #include "ipc/ipc_platform_file.h" 37 #include "ipc/ipc_platform_file.h"
38 #include "media/blink/webmediaplayer_delegate.h" 38 #include "media/blink/webmediaplayer_delegate.h"
39 #include "media/blink/webmediaplayer_params.h" 39 #include "media/blink/webmediaplayer_params.h"
40 #include "mojo/public/cpp/bindings/binding.h" 40 #include "mojo/public/cpp/bindings/binding.h"
41 #include "services/shell/public/interfaces/connector.mojom.h" 41 #include "services/shell/public/interfaces/connector.mojom.h"
42 #include "services/shell/public/interfaces/interface_provider.mojom.h" 42 #include "services/shell/public/interfaces/interface_provider.mojom.h"
43 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" 43 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h"
44 #include "third_party/WebKit/public/platform/WebFocusType.h" 44 #include "third_party/WebKit/public/platform/WebFocusType.h"
45 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" 45 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h"
46 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 46 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
47 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
47 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" 48 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h"
48 #include "third_party/WebKit/public/web/WebAXObject.h" 49 #include "third_party/WebKit/public/web/WebAXObject.h"
49 #include "third_party/WebKit/public/web/WebDataSource.h" 50 #include "third_party/WebKit/public/web/WebDataSource.h"
50 #include "third_party/WebKit/public/web/WebFrameClient.h" 51 #include "third_party/WebKit/public/web/WebFrameClient.h"
51 #include "third_party/WebKit/public/web/WebFrameLoadType.h" 52 #include "third_party/WebKit/public/web/WebFrameLoadType.h"
52 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 53 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
53 #include "third_party/WebKit/public/web/WebFrameSerializerClient.h" 54 #include "third_party/WebKit/public/web/WebFrameSerializerClient.h"
54 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" 55 #include "third_party/WebKit/public/web/WebHistoryCommitType.h"
55 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" 56 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h"
56 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" 57 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 void DetachGuest(int element_instance_id) override; 421 void DetachGuest(int element_instance_id) override;
421 void SetSelectedText(const base::string16& selection_text, 422 void SetSelectedText(const base::string16& selection_text,
422 size_t offset, 423 size_t offset,
423 const gfx::Range& range) override; 424 const gfx::Range& range) override;
424 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, 425 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate,
425 v8::Local<v8::Context> context) override; 426 v8::Local<v8::Context> context) override;
426 void AddMessageToConsole(ConsoleMessageLevel level, 427 void AddMessageToConsole(ConsoleMessageLevel level,
427 const std::string& message) override; 428 const std::string& message) override;
428 bool IsUsingLoFi() const override; 429 bool IsUsingLoFi() const override;
429 bool IsPasting() const override; 430 bool IsPasting() const override;
431 blink::WebPageVisibilityState GetVisibilityState() const override;
430 432
431 // mojom::Frame implementation: 433 // mojom::Frame implementation:
432 void GetInterfaceProvider( 434 void GetInterfaceProvider(
433 shell::mojom::InterfaceProviderRequest request) override; 435 shell::mojom::InterfaceProviderRequest request) override;
434 436
435 // blink::WebFrameClient implementation: 437 // blink::WebFrameClient implementation:
436 blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, 438 blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame,
437 const blink::WebPluginParams& params) override; 439 const blink::WebPluginParams& params) override;
438 blink::WebMediaPlayer* createMediaPlayer( 440 blink::WebMediaPlayer* createMediaPlayer(
439 const blink::WebMediaPlayerSource& source, 441 const blink::WebMediaPlayerSource& source,
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 const blink::WebURL& url, 631 const blink::WebURL& url,
630 const blink::WebString& title) override; 632 const blink::WebString& title) override;
631 void unregisterProtocolHandler(const blink::WebString& scheme, 633 void unregisterProtocolHandler(const blink::WebString& scheme,
632 const blink::WebURL& url) override; 634 const blink::WebURL& url) override;
633 blink::WebBluetooth* bluetooth() override; 635 blink::WebBluetooth* bluetooth() override;
634 void checkIfAudioSinkExistsAndIsAuthorized( 636 void checkIfAudioSinkExistsAndIsAuthorized(
635 const blink::WebString& sink_id, 637 const blink::WebString& sink_id,
636 const blink::WebSecurityOrigin& security_origin, 638 const blink::WebSecurityOrigin& security_origin,
637 blink::WebSetSinkIdCallbacks* web_callbacks) override; 639 blink::WebSetSinkIdCallbacks* web_callbacks) override;
638 blink::ServiceRegistry* serviceRegistry() override; 640 blink::ServiceRegistry* serviceRegistry() override;
641 blink::WebPageVisibilityState visibilityState() const override;
639 642
640 // WebFrameSerializerClient implementation: 643 // WebFrameSerializerClient implementation:
641 void didSerializeDataForFrame( 644 void didSerializeDataForFrame(
642 const blink::WebCString& data, 645 const blink::WebCString& data,
643 blink::WebFrameSerializerClient::FrameSerializationStatus status) 646 blink::WebFrameSerializerClient::FrameSerializationStatus status)
644 override; 647 override;
645 648
646 // Binds to the FrameHost in the browser. 649 // Binds to the FrameHost in the browser.
647 void Bind(mojom::FrameRequest frame, mojom::FrameHostPtr frame_host); 650 void Bind(mojom::FrameRequest frame, mojom::FrameHostPtr frame_host);
648 651
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 mojom::FrameHostPtr frame_host_; 1301 mojom::FrameHostPtr frame_host_;
1299 1302
1300 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1303 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1301 1304
1302 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1305 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1303 }; 1306 };
1304 1307
1305 } // namespace content 1308 } // namespace content
1306 1309
1307 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1310 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/android/media_info_loader_unittest.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698