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

Side by Side Diff: ui/views/widget/desktop_native_widget_aura.h

Issue 10908127: events: Move EventTarget into Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/ui_unittests.gypi ('k') | ui/views/widget/desktop_native_widget_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_
7 7
8 #include "ui/aura/window_delegate.h" 8 #include "ui/aura/window_delegate.h"
9 #include "ui/views/widget/native_widget_private.h" 9 #include "ui/views/widget/native_widget_private.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const gfx::Point& drag_offset) OVERRIDE; 106 const gfx::Point& drag_offset) OVERRIDE;
107 virtual void EndMoveLoop() OVERRIDE; 107 virtual void EndMoveLoop() OVERRIDE;
108 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; 108 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
109 109
110 // Overridden from aura::WindowDelegate: 110 // Overridden from aura::WindowDelegate:
111 virtual gfx::Size GetMinimumSize() const OVERRIDE; 111 virtual gfx::Size GetMinimumSize() const OVERRIDE;
112 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 112 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
113 const gfx::Rect& new_bounds) OVERRIDE; 113 const gfx::Rect& new_bounds) OVERRIDE;
114 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE; 114 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE;
115 virtual void OnBlur() OVERRIDE; 115 virtual void OnBlur() OVERRIDE;
116 virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
117 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; 116 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
118 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 117 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
119 virtual bool ShouldDescendIntoChildForEventHandling( 118 virtual bool ShouldDescendIntoChildForEventHandling(
120 aura::Window* child, 119 aura::Window* child,
121 const gfx::Point& location) OVERRIDE; 120 const gfx::Point& location) OVERRIDE;
122 virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
123 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
124 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
125 virtual bool CanFocus() OVERRIDE; 121 virtual bool CanFocus() OVERRIDE;
126 virtual void OnCaptureLost() OVERRIDE; 122 virtual void OnCaptureLost() OVERRIDE;
127 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 123 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
128 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 124 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
129 virtual void OnWindowDestroying() OVERRIDE; 125 virtual void OnWindowDestroying() OVERRIDE;
130 virtual void OnWindowDestroyed() OVERRIDE; 126 virtual void OnWindowDestroyed() OVERRIDE;
131 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; 127 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE;
132 virtual bool HasHitTestMask() const OVERRIDE; 128 virtual bool HasHitTestMask() const OVERRIDE;
133 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; 129 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE;
134 130
131 // Overridden from ui::EventHandler:
132 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
133 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
134 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
135 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
136
135 scoped_ptr<DesktopRootWindowHost> desktop_root_window_host_; 137 scoped_ptr<DesktopRootWindowHost> desktop_root_window_host_;
136 aura::Window* window_; 138 aura::Window* window_;
137 Widget::InitParams::Ownership ownership_; 139 Widget::InitParams::Ownership ownership_;
138 internal::NativeWidgetDelegate* native_widget_delegate_; 140 internal::NativeWidgetDelegate* native_widget_delegate_;
139 141
140 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 142 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
141 }; 143 };
142 144
143 } // namespace views 145 } // namespace views
144 146
145 #endif // UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ 147 #endif // UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/ui_unittests.gypi ('k') | ui/views/widget/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698