[WRTjs] Refactor popup
[platform/framework/web/chromium-efl.git] / wrt / src / browser / native_web_runtime_observer.h
1 #ifndef BROWSER_NATIVE_WEB_RUNTIME_OBSERVER_H_
2 #define BROWSER_NATIVE_WEB_RUNTIME_OBSERVER_H_
3
4 #include "base/observer_list_types.h"
5 #include "gin/handle.h"
6
7 namespace wrt {
8
9 namespace api {
10 class AppControl;
11 }
12
13 class NativeWebRuntimeObserver : public base::CheckedObserver {
14  public:
15   ~NativeWebRuntimeObserver() override {}
16
17   virtual void OnAppControl(gin::Handle<api::AppControl> handle) = 0;
18   virtual void OnSuspend() = 0;
19   virtual void OnResume() = 0;
20   virtual void OnStatusChanged(const std::string& status) = 0;
21   virtual void OnLowMemory() = 0;
22   virtual bool OnMessage(const std::string& type,
23                          const std::vector<std::string>& params) = 0;
24   virtual void OnAmbientTick() = 0;
25   virtual void OnAmbientChanged(bool ambient_mode) = 0;
26 };
27
28 }  // namespace wrt
29
30 #endif  // BROWSER_NATIVE_WEB_RUNTIME_OBSERVER_H_