Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: views/widget/native_widget_view.h

Issue 8598024: Now that we are doing a hard-cut-over to Aura, remove a bunch of *Views based classes that are ob... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/native_widget_gtk.cc ('k') | views/widget/native_widget_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_view.h
===================================================================
--- views/widget/native_widget_view.h (revision 110826)
+++ views/widget/native_widget_view.h (working copy)
@@ -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_
« no previous file with comments | « views/widget/native_widget_gtk.cc ('k') | views/widget/native_widget_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698