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

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

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fixes Created 7 years, 9 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
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_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/aura/client/activation_change_observer.h" 10 #include "ui/aura/client/activation_change_observer.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE; 125 virtual ui::NativeTheme* GetNativeTheme() const OVERRIDE;
126 126
127 // Overridden from views::InputMethodDelegate: 127 // Overridden from views::InputMethodDelegate:
128 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE; 128 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE;
129 129
130 // Overridden from aura::WindowDelegate: 130 // Overridden from aura::WindowDelegate:
131 virtual gfx::Size GetMinimumSize() const OVERRIDE; 131 virtual gfx::Size GetMinimumSize() const OVERRIDE;
132 virtual gfx::Size GetMaximumSize() const OVERRIDE; 132 virtual gfx::Size GetMaximumSize() const OVERRIDE;
133 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 133 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
134 const gfx::Rect& new_bounds) OVERRIDE; 134 const gfx::Rect& new_bounds) OVERRIDE;
135 virtual void SetHostTransitionBounds(const gfx::Rect& bounds) OVERRIDE;
135 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; 136 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
136 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 137 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
137 virtual bool ShouldDescendIntoChildForEventHandling( 138 virtual bool ShouldDescendIntoChildForEventHandling(
138 aura::Window* child, 139 aura::Window* child,
139 const gfx::Point& location) OVERRIDE; 140 const gfx::Point& location) OVERRIDE;
140 virtual bool CanFocus() OVERRIDE; 141 virtual bool CanFocus() OVERRIDE;
141 virtual void OnCaptureLost() OVERRIDE; 142 virtual void OnCaptureLost() OVERRIDE;
142 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 143 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
143 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 144 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
144 virtual void OnWindowDestroying() OVERRIDE; 145 virtual void OnWindowDestroying() OVERRIDE;
145 virtual void OnWindowDestroyed() OVERRIDE; 146 virtual void OnWindowDestroyed() OVERRIDE;
147 virtual void OnWindowHidingAnimationCompleted() OVERRIDE;
146 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; 148 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE;
147 virtual bool HasHitTestMask() const OVERRIDE; 149 virtual bool HasHitTestMask() const OVERRIDE;
148 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; 150 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE;
149 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; 151 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE;
150 152
151 // Overridden from ui::EventHandler: 153 // Overridden from ui::EventHandler:
152 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; 154 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
153 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; 155 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
154 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; 156 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE;
155 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; 157 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 212
211 scoped_ptr<DropHelper> drop_helper_; 213 scoped_ptr<DropHelper> drop_helper_;
212 int last_drop_operation_; 214 int last_drop_operation_;
213 215
214 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 216 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
215 }; 217 };
216 218
217 } // namespace views 219 } // namespace views
218 220
219 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 221 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698