Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ash / shell_delegate.h
index 9a4ac77..d41132b 100644 (file)
@@ -42,7 +42,6 @@ namespace ash {
 class AccessibilityDelegate;
 class MediaDelegate;
 class NewWindowDelegate;
-class WindowTreeHostFactory;
 class SessionStateDelegate;
 class ShelfDelegate;
 class ShelfItemDelegate;
@@ -51,6 +50,15 @@ class SystemTrayDelegate;
 class UserWallpaperDelegate;
 struct ShelfItem;
 
+class ASH_EXPORT VirtualKeyboardStateObserver {
+ public:
+  // Called when keyboard is activated/deactivated.
+  virtual void OnVirtualKeyboardStateChanged(bool activated) {}
+
+ protected:
+  virtual ~VirtualKeyboardStateObserver() {}
+};
+
 // Delegate of the Shell.
 class ASH_EXPORT ShellDelegate {
  public:
@@ -72,6 +80,9 @@ class ASH_EXPORT ShellDelegate {
   // Returns true if we're running in forced app mode.
   virtual bool IsRunningInForcedAppMode() const = 0;
 
+  // Returns true if multi account is enabled.
+  virtual bool IsMultiAccountEnabled() const = 0;
+
   // Called before processing |Shell::Init()| so that the delegate
   // can perform tasks necessary before the shell is initialized.
   virtual void PreInit() = 0;
@@ -87,6 +98,15 @@ class ASH_EXPORT ShellDelegate {
   virtual keyboard::KeyboardControllerProxy*
       CreateKeyboardControllerProxy() = 0;
 
+  // Called when virtual keyboard has been activated/deactivated.
+  virtual void VirtualKeyboardActivated(bool activated) = 0;
+
+  // Adds or removes virtual keyboard state observer.
+  virtual void AddVirtualKeyboardStateObserver(
+      VirtualKeyboardStateObserver* observer) = 0;
+  virtual void RemoveVirtualKeyboardStateObserver(
+      VirtualKeyboardStateObserver* observer) = 0;
+
   // Get the active browser context. This will get us the active profile
   // in chrome.
   virtual content::BrowserContext* GetActiveBrowserContext() = 0;
@@ -125,10 +145,6 @@ class ASH_EXPORT ShellDelegate {
       ash::ShelfItemDelegate* item_delegate,
       ash::ShelfItem* item) = 0;
 
-  // Creates a root window host factory. Shell takes ownership of the returned
-  // value.
-  virtual WindowTreeHostFactory* CreateWindowTreeHostFactory() = 0;
-
   // Creates a GPU support object. Shell takes ownership of the object.
   virtual GPUSupport* CreateGPUSupport() = 0;