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

Side by Side Diff: ui/views/widget/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_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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 const gfx::Point& location) OVERRIDE; 147 const gfx::Point& location) OVERRIDE;
148 virtual bool CanFocus() OVERRIDE; 148 virtual bool CanFocus() OVERRIDE;
149 virtual void OnCaptureLost() OVERRIDE; 149 virtual void OnCaptureLost() OVERRIDE;
150 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 150 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
151 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 151 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
152 virtual void OnWindowDestroying() OVERRIDE; 152 virtual void OnWindowDestroying() OVERRIDE;
153 virtual void OnWindowDestroyed() OVERRIDE; 153 virtual void OnWindowDestroyed() OVERRIDE;
154 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; 154 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE;
155 virtual bool HasHitTestMask() const OVERRIDE; 155 virtual bool HasHitTestMask() const OVERRIDE;
156 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; 156 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE;
157 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; 157 virtual void DidRecreateLayer(ui::Layer* old_layer,
158 ui::Layer* new_layer) OVERRIDE;
158 159
159 // Overridden from ui::EventHandler: 160 // Overridden from ui::EventHandler:
160 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; 161 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
161 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; 162 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
162 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; 163 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE;
163 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; 164 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
164 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 165 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
165 166
166 // Overridden from aura::client::ActivationDelegate: 167 // Overridden from aura::client::ActivationDelegate:
167 virtual bool ShouldActivate() const OVERRIDE; 168 virtual bool ShouldActivate() const OVERRIDE;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 229
229 scoped_ptr<DropHelper> drop_helper_; 230 scoped_ptr<DropHelper> drop_helper_;
230 int last_drop_operation_; 231 int last_drop_operation_;
231 232
232 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 233 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
233 }; 234 };
234 235
235 } // namespace views 236 } // namespace views
236 237
237 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 238 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698