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

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

Issue 1125193004: Simplify accelerated paint and remove windows CanvasSkiaPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/widget/widget.h » ('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_NATIVE_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/events/event_constants.h" 10 #include "ui/events/event_constants.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // maximize. 99 // maximize.
100 virtual void OnNativeWidgetWindowShowStateChanged() = 0; 100 virtual void OnNativeWidgetWindowShowStateChanged() = 0;
101 101
102 // Called when the user begins/ends to change the bounds of the window. 102 // Called when the user begins/ends to change the bounds of the window.
103 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; 103 virtual void OnNativeWidgetBeginUserBoundsChange() = 0;
104 virtual void OnNativeWidgetEndUserBoundsChange() = 0; 104 virtual void OnNativeWidgetEndUserBoundsChange() = 0;
105 105
106 // Returns true if the delegate has a FocusManager. 106 // Returns true if the delegate has a FocusManager.
107 virtual bool HasFocusManager() const = 0; 107 virtual bool HasFocusManager() const = 0;
108 108
109 // Paints the widget using acceleration. If the widget is not using
110 // accelerated painting this returns false and does nothing.
111 virtual bool OnNativeWidgetPaintAccelerated(
112 const gfx::Rect& dirty_region) = 0;
113
114 // Paints the rootview in the context. This will also refresh the compositor 109 // Paints the rootview in the context. This will also refresh the compositor
115 // tree if necessary. 110 // tree if necessary.
116 virtual void OnNativeWidgetPaint(const ui::PaintContext& context) = 0; 111 virtual void OnNativeWidgetPaint(const ui::PaintContext& context) = 0;
117 112
118 // Returns the non-client component (see ui/base/hit_test.h) containing 113 // Returns the non-client component (see ui/base/hit_test.h) containing
119 // |point|, in client coordinates. 114 // |point|, in client coordinates.
120 virtual int GetNonClientComponent(const gfx::Point& point) = 0; 115 virtual int GetNonClientComponent(const gfx::Point& point) = 0;
121 116
122 // Mouse and key event handlers. 117 // Mouse and key event handlers.
123 virtual void OnKeyEvent(ui::KeyEvent* event) = 0; 118 virtual void OnKeyEvent(ui::KeyEvent* event) = 0;
(...skipping 30 matching lines...) Expand all
154 // later. Returns true if the initial focus has been set or the window should 149 // later. Returns true if the initial focus has been set or the window should
155 // not set the initial focus, or false if the caller should set the initial 150 // not set the initial focus, or false if the caller should set the initial
156 // focus (if any). 151 // focus (if any).
157 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0; 152 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0;
158 }; 153 };
159 154
160 } // namespace internal 155 } // namespace internal
161 } // namespace views 156 } // namespace views
162 157
163 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 158 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698