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

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

Issue 1053143002: Make View::Paint use ui::PaintRecorder to access PaintContext's canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: paintrecorder: . Created 5 years, 8 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
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/focus_change_observer.h" 9 #include "ui/aura/client/focus_change_observer.h"
10 #include "ui/aura/window_delegate.h" 10 #include "ui/aura/window_delegate.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void OnBoundsChanged(const gfx::Rect& old_bounds, 188 void OnBoundsChanged(const gfx::Rect& old_bounds,
189 const gfx::Rect& new_bounds) override {} 189 const gfx::Rect& new_bounds) override {}
190 ui::TextInputClient* GetFocusedTextInputClient() override; 190 ui::TextInputClient* GetFocusedTextInputClient() override;
191 gfx::NativeCursor GetCursor(const gfx::Point& point) override; 191 gfx::NativeCursor GetCursor(const gfx::Point& point) override;
192 int GetNonClientComponent(const gfx::Point& point) const override; 192 int GetNonClientComponent(const gfx::Point& point) const override;
193 bool ShouldDescendIntoChildForEventHandling( 193 bool ShouldDescendIntoChildForEventHandling(
194 aura::Window* child, 194 aura::Window* child,
195 const gfx::Point& location) override; 195 const gfx::Point& location) override;
196 bool CanFocus() override; 196 bool CanFocus() override;
197 void OnCaptureLost() override; 197 void OnCaptureLost() override;
198 void OnPaint(gfx::Canvas* canvas) override; 198 void OnPaint(const ui::PaintContext& context) override;
199 void OnDeviceScaleFactorChanged(float device_scale_factor) override; 199 void OnDeviceScaleFactorChanged(float device_scale_factor) override;
200 void OnWindowDestroying(aura::Window* window) override; 200 void OnWindowDestroying(aura::Window* window) override;
201 void OnWindowDestroyed(aura::Window* window) override; 201 void OnWindowDestroyed(aura::Window* window) override;
202 void OnWindowTargetVisibilityChanged(bool visible) override; 202 void OnWindowTargetVisibilityChanged(bool visible) override;
203 bool HasHitTestMask() const override; 203 bool HasHitTestMask() const override;
204 void GetHitTestMask(gfx::Path* mask) const override; 204 void GetHitTestMask(gfx::Path* mask) const override;
205 205
206 // Overridden from ui::EventHandler: 206 // Overridden from ui::EventHandler:
207 void OnKeyEvent(ui::KeyEvent* event) override; 207 void OnKeyEvent(ui::KeyEvent* event) override;
208 void OnMouseEvent(ui::MouseEvent* event) override; 208 void OnMouseEvent(ui::MouseEvent* event) override;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // The following factory is used for calls to close the NativeWidgetAura 315 // The following factory is used for calls to close the NativeWidgetAura
316 // instance. 316 // instance.
317 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; 317 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_;
318 318
319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
320 }; 320 };
321 321
322 } // namespace views 322 } // namespace views
323 323
324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698