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

Side by Side Diff: ui/views/cocoa/bridged_native_widget.h

Issue 1057873004: Pass a ui::PaintContext from ui::Layer to layer delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer-paintcontext: mac 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
« no previous file with comments | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COCOA_BRIDGED_NATIVE_WIDGET_H_ 5 #ifndef UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Creates and attaches a new instance if not found. 193 // Creates and attaches a new instance if not found.
194 NSMutableDictionary* GetWindowProperties() const; 194 NSMutableDictionary* GetWindowProperties() const;
195 195
196 // Overridden from FocusChangeListener: 196 // Overridden from FocusChangeListener:
197 void OnWillChangeFocus(View* focused_before, 197 void OnWillChangeFocus(View* focused_before,
198 View* focused_now) override; 198 View* focused_now) override;
199 void OnDidChangeFocus(View* focused_before, 199 void OnDidChangeFocus(View* focused_before,
200 View* focused_now) override; 200 View* focused_now) override;
201 201
202 // Overridden from ui::LayerDelegate: 202 // Overridden from ui::LayerDelegate:
203 void OnPaintLayer(gfx::Canvas* canvas) override; 203 void OnPaintLayer(const ui::PaintContext& context) override;
204 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override; 204 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override;
205 void OnDeviceScaleFactorChanged(float device_scale_factor) override; 205 void OnDeviceScaleFactorChanged(float device_scale_factor) override;
206 base::Closure PrepareForLayerBoundsChange() override; 206 base::Closure PrepareForLayerBoundsChange() override;
207 207
208 // Overridden from ui::AcceleratedWidgetMac: 208 // Overridden from ui::AcceleratedWidgetMac:
209 NSView* AcceleratedWidgetGetNSView() const override; 209 NSView* AcceleratedWidgetGetNSView() const override;
210 bool AcceleratedWidgetShouldIgnoreBackpressure() const override; 210 bool AcceleratedWidgetShouldIgnoreBackpressure() const override;
211 void AcceleratedWidgetSwapCompleted( 211 void AcceleratedWidgetSwapCompleted(
212 const std::vector<ui::LatencyInfo>& latency_info) override; 212 const std::vector<ui::LatencyInfo>& latency_info) override;
213 void AcceleratedWidgetHitError() override; 213 void AcceleratedWidgetHitError() override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // If true, the window is either visible, or wants to be visible but is 248 // If true, the window is either visible, or wants to be visible but is
249 // currently hidden due to having a hidden parent. 249 // currently hidden due to having a hidden parent.
250 bool wants_to_be_visible_; 250 bool wants_to_be_visible_;
251 251
252 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 252 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
253 }; 253 };
254 254
255 } // namespace views 255 } // namespace views
256 256
257 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 257 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698