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

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

Issue 2065513004: Expose flash playback status and volume control to content renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_focus_manager
Patch Set: addressing nits 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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 // Indicates that the given instance has been created. 679 // Indicates that the given instance has been created.
680 void PepperInstanceCreated(PepperPluginInstanceImpl* instance); 680 void PepperInstanceCreated(PepperPluginInstanceImpl* instance);
681 681
682 // Indicates that the given instance is being destroyed. This is called from 682 // Indicates that the given instance is being destroyed. This is called from
683 // the destructor, so it's important that the instance is not dereferenced 683 // the destructor, so it's important that the instance is not dereferenced
684 // from this call. 684 // from this call.
685 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); 685 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance);
686 686
687 // Notification that the given plugin is focused or unfocused. 687 // Notification that the given plugin is focused or unfocused.
688 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); 688 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused);
689
690 void PepperStartsPlayback(PepperPluginInstanceImpl* instance);
691 void PepperStopsPlayback(PepperPluginInstanceImpl* instance);
692 void OnSetPepperVolume(int32_t pp_instance, double volume);
689 #endif // ENABLE_PLUGINS 693 #endif // ENABLE_PLUGINS
690 694
691 protected: 695 protected:
692 explicit RenderFrameImpl(const CreateParams& params); 696 explicit RenderFrameImpl(const CreateParams& params);
693 697
694 private: 698 private:
695 friend class RenderFrameImplTest; 699 friend class RenderFrameImplTest;
696 friend class RenderFrameObserver; 700 friend class RenderFrameObserver;
697 friend class RendererAccessibilityTest; 701 friend class RendererAccessibilityTest;
698 friend class TestRenderFrame; 702 friend class TestRenderFrame;
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 mojom::FrameHostPtr frame_host_; 1297 mojom::FrameHostPtr frame_host_;
1294 1298
1295 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1299 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1296 1300
1297 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1301 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1298 }; 1302 };
1299 1303
1300 } // namespace content 1304 } // namespace content
1301 1305
1302 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1306 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698