Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
subtitle_listener_samsung.h
Go to the documentation of this file.
1 // Copyright (c) 2016 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef PPAPI_CPP_SAMSUNG_SUBTITLE_LISTENER_SAMSUNG_H_
6 #define PPAPI_CPP_SAMSUNG_SUBTITLE_LISTENER_SAMSUNG_H_
7 
8 #include "ppapi/c/pp_resource.h"
9 #include "ppapi/c/samsung/ppp_media_player_samsung.h"
10 
15 namespace pp {
16 
17 class MediaPlayer_Samsung;
18 
28  public:
29  virtual ~SubtitleListener_Samsung();
30 
37  virtual void OnShowSubtitle(PP_TimeDelta duration, const char* text) = 0;
38 
39  protected:
43 
46 
48  void AttachTo(MediaPlayer_Samsung* player);
49 
50  private:
51  void Detach();
52  PP_Resource player_;
53 
54  // Disallow copy and assign
56  SubtitleListener_Samsung& operator=(
58 };
59 
60 } // namespace pp
61 
62 #endif // PPAPI_CPP_SAMSUNG_SUBTITLE_LISTENER_SAMSUNG_H_
void AttachTo(MediaPlayer_Samsung *player)
Attaches listener to the |player|.
virtual void OnShowSubtitle(PP_TimeDelta duration, const char *text)=0
Definition: subtitle_listener_samsung.h:27
Definition: media_player_samsung.h:37