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

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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 // Indicates that the given instance has been created. 676 // Indicates that the given instance has been created.
677 void PepperInstanceCreated(PepperPluginInstanceImpl* instance); 677 void PepperInstanceCreated(PepperPluginInstanceImpl* instance);
678 678
679 // Indicates that the given instance is being destroyed. This is called from 679 // Indicates that the given instance is being destroyed. This is called from
680 // the destructor, so it's important that the instance is not dereferenced 680 // the destructor, so it's important that the instance is not dereferenced
681 // from this call. 681 // from this call.
682 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); 682 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance);
683 683
684 // Notification that the given plugin is focused or unfocused. 684 // Notification that the given plugin is focused or unfocused.
685 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); 685 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused);
686
687 void PepperStartsPlayback(PepperPluginInstanceImpl* instance);
688 void PepperStopsPlayback(PepperPluginInstanceImpl* instance);
689 void OnSetPepperVolume(int32_t pp_instance, double volume);
686 #endif // ENABLE_PLUGINS 690 #endif // ENABLE_PLUGINS
687 691
688 protected: 692 protected:
689 explicit RenderFrameImpl(const CreateParams& params); 693 explicit RenderFrameImpl(const CreateParams& params);
690 694
691 private: 695 private:
692 friend class RenderFrameImplTest; 696 friend class RenderFrameImplTest;
693 friend class RenderFrameObserver; 697 friend class RenderFrameObserver;
694 friend class RendererAccessibilityTest; 698 friend class RendererAccessibilityTest;
695 friend class TestRenderFrame; 699 friend class TestRenderFrame;
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 mojom::FrameHostPtr frame_host_; 1291 mojom::FrameHostPtr frame_host_;
1288 1292
1289 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1293 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1290 1294
1291 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1295 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1292 }; 1296 };
1293 1297
1294 } // namespace content 1298 } // namespace content
1295 1299
1296 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1300 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698