diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-19 04:50:16 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-19 04:50:16 +0000 |
commit | 11c36bed534c21bb2c6203c3ad6ca5ea54ebf91d (patch) | |
tree | 571a73e5c23ec51cf2f0591867421df97678d69c /views/widget/native_widget_views.h | |
parent | 684899472204f817834c51d581f518571a6b882d (diff) | |
download | chromium_src-11c36bed534c21bb2c6203c3ad6ca5ea54ebf91d.zip chromium_src-11c36bed534c21bb2c6203c3ad6ca5ea54ebf91d.tar.gz chromium_src-11c36bed534c21bb2c6203c3ad6ca5ea54ebf91d.tar.bz2 |
Now that we are doing a hard-cut-over to Aura, remove a bunch of *Views based classes that are obsoleted by Aura. Also remove a bunch of Wayland stuff, since any future Wayland integration is likely done as an implementation detail of Aura, not Views.
Specifically:
- views-desktop (classes and NativeWidgetView[s])
- NativeWidgetViews subclasses in Chrome (Constrained Windows, NTCVV, NTCCV, BrowserFrameViews et al).
- RWHVV, NWKEV
- NativeViewHostViews
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8598024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110832 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/native_widget_views.h')
-rw-r--r-- | views/widget/native_widget_views.h | 190 |
1 files changed, 0 insertions, 190 deletions
diff --git a/views/widget/native_widget_views.h b/views/widget/native_widget_views.h deleted file mode 100644 index caf48dd..0000000 --- a/views/widget/native_widget_views.h +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright (c) 2011 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 VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ -#define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ -#pragma once - -#include <map> - -#include "base/memory/weak_ptr.h" -#include "base/message_loop.h" -#include "ui/base/ui_base_types.h" -#include "ui/gfx/transform.h" -#include "views/widget/native_widget_private.h" -#include "views/widget/widget.h" - -namespace views { -namespace desktop { -class DesktopWindowView; -} - -namespace internal { -class NativeWidgetView; -} - -//////////////////////////////////////////////////////////////////////////////// -// NativeWidgetViews -// -// A NativeWidget implementation that uses another View as its native widget. -// -class VIEWS_EXPORT NativeWidgetViews : public internal::NativeWidgetPrivate { - public: - explicit NativeWidgetViews(internal::NativeWidgetDelegate* delegate); - virtual ~NativeWidgetViews(); - - // TODO(beng): remove. - View* GetView(); - const View* GetView() const; - - // TODO(oshima): These will be moved to WM API. - void OnActivate(bool active); - bool OnKeyEvent(const KeyEvent& key_event); - - void set_delete_native_view(bool delete_native_view) { - delete_native_view_ = delete_native_view; - } - - internal::NativeWidgetDelegate* delegate() const { return delegate_; } - - protected: - friend class internal::NativeWidgetView; - - // Event handlers that subclass can implmenet custom behavior. - virtual void OnBoundsChanged(const gfx::Rect& new_bounds, - const gfx::Rect& old_bounds); - virtual bool OnMouseEvent(const MouseEvent& event); - - // Overridden from internal::NativeWidgetPrivate: - virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; - virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; - virtual void UpdateFrameAfterFrameChange() OVERRIDE; - virtual bool ShouldUseNativeFrame() const OVERRIDE; - virtual void FrameTypeChanged() OVERRIDE; - virtual Widget* GetWidget() OVERRIDE; - virtual const Widget* GetWidget() const OVERRIDE; - virtual gfx::NativeView GetNativeView() const OVERRIDE; - virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; - virtual Widget* GetTopLevelWidget() OVERRIDE; - virtual const ui::Compositor* GetCompositor() const OVERRIDE; - virtual ui::Compositor* GetCompositor() OVERRIDE; - virtual void CalculateOffsetToAncestorWithLayer( - gfx::Point* offset, - ui::Layer** layer_parent) OVERRIDE; - virtual void ReorderLayers() OVERRIDE; - virtual void ViewRemoved(View* view) OVERRIDE; - virtual void SetNativeWindowProperty(const char* name, void* value) OVERRIDE; - virtual void* GetNativeWindowProperty(const char* name) const OVERRIDE; - virtual TooltipManager* GetTooltipManager() const OVERRIDE; - virtual bool IsScreenReaderActive() const OVERRIDE; - virtual void SendNativeAccessibilityEvent( - View* view, - ui::AccessibilityTypes::Event event_type) OVERRIDE; - virtual void SetMouseCapture() OVERRIDE; - virtual void ReleaseMouseCapture() OVERRIDE; - virtual bool HasMouseCapture() const OVERRIDE; - virtual InputMethod* CreateInputMethod() OVERRIDE; - virtual void CenterWindow(const gfx::Size& size) OVERRIDE; - virtual void GetWindowPlacement( - gfx::Rect* bounds, - ui::WindowShowState* show_state) const OVERRIDE; - virtual void SetWindowTitle(const string16& title) OVERRIDE; - virtual void SetWindowIcons(const SkBitmap& window_icon, - const SkBitmap& app_icon) OVERRIDE; - virtual void SetAccessibleName(const string16& name) OVERRIDE; - virtual void SetAccessibleRole(ui::AccessibilityTypes::Role role) OVERRIDE; - virtual void SetAccessibleState(ui::AccessibilityTypes::State state) OVERRIDE; - virtual void BecomeModal() OVERRIDE; - virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; - virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; - virtual gfx::Rect GetRestoredBounds() const OVERRIDE; - virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; - virtual void SetSize(const gfx::Size& size) OVERRIDE; - virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; - virtual void MoveToTop() OVERRIDE; - virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; - virtual void Close() OVERRIDE; - virtual void CloseNow() OVERRIDE; - virtual void EnableClose(bool enable) OVERRIDE; - virtual void Show() OVERRIDE; - virtual void Hide() OVERRIDE; - virtual void ShowMaximizedWithBounds( - const gfx::Rect& restored_bounds) OVERRIDE; - virtual void ShowWithWindowState(ui::WindowShowState window_state) OVERRIDE; - virtual bool IsVisible() const OVERRIDE; - virtual void Activate() OVERRIDE; - virtual void Deactivate() OVERRIDE; - virtual bool IsActive() const OVERRIDE; - virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; - virtual void Maximize() OVERRIDE; - virtual void Minimize() OVERRIDE; - virtual bool IsMaximized() const OVERRIDE; - virtual bool IsMinimized() const OVERRIDE; - virtual void Restore() OVERRIDE; - virtual void SetFullscreen(bool fullscreen) OVERRIDE; - virtual bool IsFullscreen() const OVERRIDE; - virtual void SetOpacity(unsigned char opacity) OVERRIDE; - virtual void SetUseDragFrame(bool use_drag_frame) OVERRIDE; - virtual bool IsAccessibleWidget() const OVERRIDE; - virtual void RunShellDrag(View* view, - const ui::OSExchangeData& data, - int operation) OVERRIDE; - virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; - virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; - virtual void ClearNativeFocus() OVERRIDE; - virtual void FocusNativeView(gfx::NativeView native_view) OVERRIDE; - virtual bool ConvertPointFromAncestor( - const Widget* ancestor, gfx::Point* point) const OVERRIDE; - virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; - virtual void SetInactiveRenderingDisabled(bool value) OVERRIDE; - - // Overridden from internal::InputMethodDelegate - virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; - - private: - friend class desktop::DesktopWindowView; - - typedef std::map<const char*, void*> PropsMap; - - // These functions may return NULL during Widget destruction. - internal::NativeWidgetPrivate* GetParentNativeWidget(); - const internal::NativeWidgetPrivate* GetParentNativeWidget() const; - - bool HandleWindowOperation(const MouseEvent& event); - - internal::NativeWidgetDelegate* delegate_; - - // Parent Widget (can be NULL). - Widget* parent_; - - internal::NativeWidgetView* view_; - - bool active_; - - ui::WindowShowState window_state_; - - // Set when SetAlwaysOnTop is called, or keep_on_top is set during creation. - bool always_on_top_; - - // The following factory is used for calls to close the NativeWidgetViews - // instance. - base::WeakPtrFactory<NativeWidgetViews> close_widget_factory_; - - gfx::Rect restored_bounds_; - ui::Transform restored_transform_; - - // See class documentation for Widget in widget.h for a note about ownership. - Widget::InitParams::Ownership ownership_; - - bool delete_native_view_; - - // Map used by Set/GetNativeWindowProperty. - PropsMap props_map_; - - DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); -}; - -} // namespace views - -#endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |