#include "ozone/ui/events/event_converter_ozone_wayland.h"
#include "ui/events/event_utils.h"
-namespace ozonewayland {
+using namespace ozonewayland;
+
+namespace views {
WindowTreeHostDelegateWayland::WindowTreeHostDelegateWayland()
: current_focus_window_(0),
unsigned window_handle = current_active_window_->window_;
if (windows.front() != window_handle) {
windows.remove(window_handle);
- windows.insert(open_windows().begin(), window_handle);
+ windows.insert(windows.begin(), window_handle);
}
current_active_window_->Activate();
////////////////////////////////////////////////////////////////////////////////
// WindowTreeHostDelegateWayland, MessagePumpDispatcher implementation:
-bool WindowTreeHostDelegateWayland::Dispatch(const base::NativeEvent& ne) {
+uint32_t WindowTreeHostDelegateWayland::Dispatch(const base::NativeEvent& ne) {
ui::EventType type = ui::EventTypeFromNative(ne);
DCHECK(current_dispatcher_);
default:
NOTIMPLEMENTED() << "WindowTreeHostDelegateWayland: unknown event type.";
}
- return true;
+ return POST_DISPATCH_NONE;
}
////////////////////////////////////////////////////////////////////////////////
window->HandleWindowResize(width, height);
}
-} // namespace ozonewayland
+} // namespace views