diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-14 18:54:58 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-14 18:54:58 +0000 |
commit | e8cf7330b0f4187726568d1363eb85d7fd404f16 (patch) | |
tree | eee645c53b6381054c0955a8bba7490038a6b3ef /ui/aura/window_tree_host_ozone.h | |
parent | 36f33ddbf966257d3f59239b10d61bb9b54688fd (diff) | |
download | chromium_src-e8cf7330b0f4187726568d1363eb85d7fd404f16.zip chromium_src-e8cf7330b0f4187726568d1363eb85d7fd404f16.tar.gz chromium_src-e8cf7330b0f4187726568d1363eb85d7fd404f16.tar.bz2 |
Move root_window_host* in aura to window_tree_host*.
R=sky@chromium.org
TBR=sky@chromium.org
BUG=
Review URL: https://codereview.chromium.org/160573002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251379 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/window_tree_host_ozone.h')
-rw-r--r-- | ui/aura/window_tree_host_ozone.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/ui/aura/window_tree_host_ozone.h b/ui/aura/window_tree_host_ozone.h new file mode 100644 index 0000000..3529ac6 --- /dev/null +++ b/ui/aura/window_tree_host_ozone.h @@ -0,0 +1,64 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef UI_AURA_WINDOW_TREE_HOST_OZONE_H_ +#define UI_AURA_WINDOW_TREE_HOST_OZONE_H_ + +#include <vector> + +#include "base/memory/scoped_ptr.h" +#include "base/message_loop/message_pump_dispatcher.h" +#include "ui/aura/window_tree_host.h" +#include "ui/events/event_source.h" +#include "ui/gfx/insets.h" +#include "ui/gfx/rect.h" + +namespace aura { + +class WindowTreeHostOzone : public WindowTreeHost, + public ui::EventSource, + public base::MessagePumpDispatcher { + public: + explicit WindowTreeHostOzone(const gfx::Rect& bounds); + virtual ~WindowTreeHostOzone(); + + private: + // Overridden from Dispatcher overrides: + virtual uint32_t Dispatch(const base::NativeEvent& event) OVERRIDE; + + // WindowTreeHost Overrides. + virtual RootWindow* GetRootWindow() OVERRIDE; + virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; + virtual void Show() OVERRIDE; + virtual void Hide() OVERRIDE; + virtual void ToggleFullScreen() OVERRIDE; + virtual gfx::Rect GetBounds() const OVERRIDE; + virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; + virtual gfx::Insets GetInsets() const OVERRIDE; + virtual void SetInsets(const gfx::Insets& bounds) OVERRIDE; + virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; + virtual void SetCapture() OVERRIDE; + virtual void ReleaseCapture() OVERRIDE; + virtual void SetCursor(gfx::NativeCursor cursor_type) OVERRIDE; + virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; + virtual bool ConfineCursorToRootWindow() OVERRIDE; + virtual void UnConfineCursor() OVERRIDE; + virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; + virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; + virtual void PostNativeEvent(const base::NativeEvent& event) OVERRIDE; + virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; + virtual void PrepareForShutdown() OVERRIDE; + + // ui::EventSource overrides. + virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; + + gfx::AcceleratedWidget widget_; + gfx::Rect bounds_; + + DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone); +}; + +} // namespace aura + +#endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_ |