| Index: ui/views/widget/desktop_aura/desktop_root_window_host_ozone.h
|
| diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_ozone.h b/ui/views/widget/desktop_aura/desktop_root_window_host_ozone.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ed45c0087d9511611b138feed6f554ea892d8d01
|
| --- /dev/null
|
| +++ b/ui/views/widget/desktop_aura/desktop_root_window_host_ozone.h
|
| @@ -0,0 +1,127 @@
|
| +// Copyright (c) 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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OZONE_H_
|
| +#define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OZONE_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "ui/aura/window_tree_host.h"
|
| +#include "ui/gfx/rect.h"
|
| +#include "ui/views/views_export.h"
|
| +#include "ui/views/widget/desktop_aura/desktop_root_window_host.h"
|
| +
|
| +namespace gfx {
|
| +class ImageSkia;
|
| +class ImageSkiaRep;
|
| +}
|
| +
|
| +namespace views {
|
| +
|
| +class VIEWS_EXPORT DesktopRootWindowHostOzone :
|
| + public DesktopRootWindowHost,
|
| + public aura::RootWindowHost,
|
| + public base::MessageLoop::Dispatcher {
|
| + public:
|
| + DesktopRootWindowHostOzone(
|
| + internal::NativeWidgetDelegate* native_widget_delegate,
|
| + DesktopNativeWidgetAura* desktop_native_widget_aura);
|
| + virtual ~DesktopRootWindowHostOzone();
|
| +
|
| + protected:
|
| + // Overridden from DesktopRootWindowHost:
|
| + virtual void Init(aura::Window* content_window,
|
| + const Widget::InitParams& params,
|
| + aura::RootWindow::CreateParams* rw_create_params) OVERRIDE;
|
| + virtual void OnRootWindowCreated(aura::RootWindow* root,
|
| + const Widget::InitParams& params) OVERRIDE;
|
| + virtual scoped_ptr<corewm::Tooltip> CreateTooltip() OVERRIDE;
|
| + virtual scoped_ptr<aura::client::DragDropClient>
|
| + CreateDragDropClient(DesktopNativeCursorManager* cursor_manager) OVERRIDE;
|
| + virtual void Close() OVERRIDE;
|
| + virtual void CloseNow() OVERRIDE;
|
| + virtual aura::RootWindowHost* AsRootWindowHost() OVERRIDE;
|
| + virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE;
|
| + virtual void ShowMaximizedWithBounds(
|
| + const gfx::Rect& restored_bounds) OVERRIDE;
|
| + virtual bool IsVisible() const OVERRIDE;
|
| + virtual void SetSize(const gfx::Size& size) OVERRIDE;
|
| + virtual void CenterWindow(const gfx::Size& size) OVERRIDE;
|
| + virtual void GetWindowPlacement(
|
| + gfx::Rect* bounds,
|
| + ui::WindowShowState* show_state) const OVERRIDE;
|
| + virtual gfx::Rect GetWindowBoundsInScreen() const OVERRIDE;
|
| + virtual gfx::Rect GetClientAreaBoundsInScreen() const OVERRIDE;
|
| + virtual gfx::Rect GetRestoredBounds() const OVERRIDE;
|
| + virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE;
|
| + virtual void SetShape(gfx::NativeRegion native_region) OVERRIDE;
|
| + virtual void Activate() OVERRIDE;
|
| + virtual void Deactivate() OVERRIDE;
|
| + virtual bool IsActive() const OVERRIDE;
|
| + virtual void Maximize() OVERRIDE;
|
| + virtual void Minimize() OVERRIDE;
|
| + virtual void Restore() OVERRIDE;
|
| + virtual bool IsMaximized() const OVERRIDE;
|
| + virtual bool IsMinimized() const OVERRIDE;
|
| + virtual bool HasCapture() const OVERRIDE;
|
| + virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
|
| + virtual bool IsAlwaysOnTop() const OVERRIDE;
|
| + virtual void SetWindowTitle(const string16& title) OVERRIDE;
|
| + virtual void ClearNativeFocus() OVERRIDE;
|
| + virtual Widget::MoveLoopResult RunMoveLoop(
|
| + const gfx::Vector2d& drag_offset,
|
| + Widget::MoveLoopSource source,
|
| + Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE;
|
| + virtual void EndMoveLoop() OVERRIDE;
|
| + virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
|
| + virtual bool ShouldUseNativeFrame() OVERRIDE;
|
| + virtual void FrameTypeChanged() OVERRIDE;
|
| + virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
|
| + virtual void SetFullscreen(bool fullscreen) OVERRIDE;
|
| + virtual bool IsFullscreen() const OVERRIDE;
|
| + virtual void SetOpacity(unsigned char opacity) OVERRIDE;
|
| + virtual void SetWindowIcons(const gfx::ImageSkia& window_icon,
|
| + const gfx::ImageSkia& app_icon) OVERRIDE;
|
| + virtual void InitModalType(ui::ModalType modal_type) OVERRIDE;
|
| + virtual void FlashFrame(bool flash_frame) OVERRIDE;
|
| + virtual void OnRootViewLayout() const OVERRIDE;
|
| + virtual void OnNativeWidgetFocus() OVERRIDE;
|
| + virtual void OnNativeWidgetBlur() OVERRIDE;
|
| + virtual bool IsAnimatingClosed() const OVERRIDE;
|
| +
|
| + // Overridden from aura::RootWindowHost:
|
| + virtual aura::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& insets) OVERRIDE;
|
| + virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
|
| + virtual void SetCapture() OVERRIDE;
|
| + virtual void ReleaseCapture() OVERRIDE;
|
| + virtual void SetCursor(gfx::NativeCursor cursor) 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& native_event) OVERRIDE;
|
| + virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
|
| + virtual void PrepareForShutdown() OVERRIDE;
|
| +
|
| +private:
|
| + // Overridden from Dispatcher:
|
| + virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
|
| +
|
| + DesktopRootWindowHostOzone* drwh_ozone_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostOzone);
|
| +};
|
| +
|
| +} // namespace views
|
| +
|
| +#endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_OZONE_H_
|
|
|