Change-Id: Ia9f363e4f28ae267a676c6603b8d21f40e21a4cf
#include <atspi/atspi.h>
#include <gio/gio.h>
+#include <string.h>
#include <memory>
#include "config.h"
static UiDevice *getInstance(DeviceType type);
private:
- const std::vector<std::unique_ptr<AccessibleNode>> getWindowRoot() const;
+ std::vector<std::unique_ptr<AccessibleNode>> getWindowRoot() const;
private:
UiDevice();
return device;
}
-const std::vector<std::unique_ptr<AccessibleNode>> UiDevice::getWindowRoot() const
+std::vector<std::unique_ptr<AccessibleNode>> UiDevice::getWindowRoot() const
{
- std::vector<std::unique_ptr<AccessibleNode>> root = AccessibleWatcher::getInstance()->getTopNode();
- // root->print(0,6);
- return root;
+ return AccessibleWatcher::getInstance()->getTopNode();
}
bool UiDevice::hasObject(const std::shared_ptr<UiSelector> selector) const