summaryrefslogtreecommitdiffstats
path: root/views/widget/native_widget_view.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-19 04:50:16 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-19 04:50:16 +0000
commit11c36bed534c21bb2c6203c3ad6ca5ea54ebf91d (patch)
tree571a73e5c23ec51cf2f0591867421df97678d69c /views/widget/native_widget_view.h
parent684899472204f817834c51d581f518571a6b882d (diff)
downloadchromium_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_view.h')
-rw-r--r--views/widget/native_widget_view.h101
1 files changed, 0 insertions, 101 deletions
diff --git a/views/widget/native_widget_view.h b/views/widget/native_widget_view.h
deleted file mode 100644
index a64cbf7..0000000
--- a/views/widget/native_widget_view.h
+++ /dev/null
@@ -1,101 +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_VIEW_H_
-#define VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_
-#pragma once
-
-#include "views/view.h"
-#include "views/widget/native_widget_delegate.h"
-#include "views/widget/native_widget_views.h"
-
-namespace ui {
-enum TouchStatus;
-}
-
-namespace views {
-namespace internal {
-
-////////////////////////////////////////////////////////////////////////////////
-// NativeWidgetView
-//
-// This class represents the View that is the "native view" for a
-// NativeWidgetViews. It is the View that is a member of the parent Widget's
-// View hierarchy. It is responsible for receiving relevant events from that
-// hierarchy and forwarding them to its NativeWidgetViews' delegate's hierarchy.
-//
-class VIEWS_EXPORT NativeWidgetView : public View {
- public:
- static const char kViewClassName[];
-
- explicit NativeWidgetView(NativeWidgetViews* native_widget);
- virtual ~NativeWidgetView();
-
- Widget* GetAssociatedWidget();
-
- void set_delete_native_widget(bool delete_native_widget) {
- delete_native_widget_ = delete_native_widget;
- }
-
- void set_cursor(gfx::NativeCursor cursor) { cursor_ = cursor; }
-
- // Overridden from View:
- virtual void CalculateOffsetToAncestorWithLayer(
- gfx::Point* offset,
- ui::Layer** layer_parent) OVERRIDE;
- virtual void ReorderLayers() OVERRIDE;
-
-#if !defined(NDEBUG)
- virtual std::string PrintViewGraph(bool first) OVERRIDE;
-#endif
-
- private:
- // Overridden from View:
- virtual void ViewHierarchyChanged(bool is_add,
- View* parent,
- View* child) OVERRIDE;
- virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
- virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
- virtual gfx::NativeCursor GetCursor(const MouseEvent& event) OVERRIDE;
- virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE;
- virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE;
- virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE;
- virtual void OnMouseCaptureLost() OVERRIDE;
- virtual void OnMouseMoved(const MouseEvent& event) OVERRIDE;
- virtual void OnMouseEntered(const MouseEvent& event) OVERRIDE;
- virtual void OnMouseExited(const MouseEvent& event) OVERRIDE;
- virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE;
- virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE;
- virtual bool OnKeyReleased(const KeyEvent& event) OVERRIDE;
- virtual bool OnMouseWheel(const MouseWheelEvent& event) OVERRIDE;
- virtual void VisibilityChanged(View* starting_from, bool is_visible) OVERRIDE;
- virtual void OnFocus() OVERRIDE;
- virtual void OnBlur() OVERRIDE;
- virtual std::string GetClassName() const OVERRIDE;
- virtual void MoveLayerToParent(ui::Layer* parent_layer,
- const gfx::Point& point) OVERRIDE;
- virtual void UpdateChildLayerBounds(const gfx::Point& offset) OVERRIDE;
- virtual void ReorderChildLayers(ui::Layer* parent_layer) OVERRIDE;
-
- internal::NativeWidgetDelegate* delegate() {
- return native_widget_->delegate();
- }
-
- NativeWidgetViews* native_widget_;
-
- // Have we sent OnNativeWidgetCreated?
- bool sent_create_;
-
- bool delete_native_widget_;
-
- // The cursor set for the associated widget.
- gfx::NativeCursor cursor_;
-
- DISALLOW_COPY_AND_ASSIGN(NativeWidgetView);
-};
-
-} // namespace internal
-} // namespace views
-
-#endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_