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

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

Issue 23444051: Move the content-dependent RecreateLayer logic from aura::Window to RWHVA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better comments Created 7 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
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_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ui/aura/client/activation_change_observer.h" 9 #include "ui/aura/client/activation_change_observer.h"
10 #include "ui/aura/client/activation_delegate.h" 10 #include "ui/aura/client/activation_delegate.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 const gfx::Point& location) OVERRIDE; 173 const gfx::Point& location) OVERRIDE;
174 virtual bool CanFocus() OVERRIDE; 174 virtual bool CanFocus() OVERRIDE;
175 virtual void OnCaptureLost() OVERRIDE; 175 virtual void OnCaptureLost() OVERRIDE;
176 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 176 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
177 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 177 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
178 virtual void OnWindowDestroying() OVERRIDE; 178 virtual void OnWindowDestroying() OVERRIDE;
179 virtual void OnWindowDestroyed() OVERRIDE; 179 virtual void OnWindowDestroyed() OVERRIDE;
180 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; 180 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE;
181 virtual bool HasHitTestMask() const OVERRIDE; 181 virtual bool HasHitTestMask() const OVERRIDE;
182 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; 182 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE;
183 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; 183 virtual void DidRecreateLayer(ui::Layer* old_layer,
184 ui::Layer* new_layer) OVERRIDE;
184 185
185 // Overridden from ui::EventHandler: 186 // Overridden from ui::EventHandler:
186 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; 187 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
187 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; 188 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
188 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; 189 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE;
189 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; 190 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
190 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 191 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
191 192
192 // Overridden from aura::client::ActivationDelegate: 193 // Overridden from aura::client::ActivationDelegate:
193 virtual bool ShouldActivate() const OVERRIDE; 194 virtual bool ShouldActivate() const OVERRIDE;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 // Reorders child windows of |window_| associated with a view based on the 270 // Reorders child windows of |window_| associated with a view based on the
270 // order of the associated views in the widget's view hierarchy. 271 // order of the associated views in the widget's view hierarchy.
271 scoped_ptr<WindowReorderer> window_reorderer_; 272 scoped_ptr<WindowReorderer> window_reorderer_;
272 273
273 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 274 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
274 }; 275 };
275 276
276 } // namespace views 277 } // namespace views
277 278
278 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 279 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_controller.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698