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

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

Issue 1416493010: Clean up Mac swap acknowledgement code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update latency info Created 5 years, 1 month 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 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 View* focused_now) override; 228 View* focused_now) override;
229 229
230 // Overridden from ui::LayerDelegate: 230 // Overridden from ui::LayerDelegate:
231 void OnPaintLayer(const ui::PaintContext& context) override; 231 void OnPaintLayer(const ui::PaintContext& context) override;
232 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override; 232 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override;
233 void OnDeviceScaleFactorChanged(float device_scale_factor) override; 233 void OnDeviceScaleFactorChanged(float device_scale_factor) override;
234 base::Closure PrepareForLayerBoundsChange() override; 234 base::Closure PrepareForLayerBoundsChange() override;
235 235
236 // Overridden from ui::AcceleratedWidgetMac: 236 // Overridden from ui::AcceleratedWidgetMac:
237 NSView* AcceleratedWidgetGetNSView() const override; 237 NSView* AcceleratedWidgetGetNSView() const override;
238 bool AcceleratedWidgetShouldIgnoreBackpressure() const override;
239 void AcceleratedWidgetGetVSyncParameters( 238 void AcceleratedWidgetGetVSyncParameters(
240 base::TimeTicks* timebase, base::TimeDelta* interval) const override; 239 base::TimeTicks* timebase, base::TimeDelta* interval) const override;
241 void AcceleratedWidgetSwapCompleted( 240 void AcceleratedWidgetSwapCompleted() override;
242 const std::vector<ui::LatencyInfo>& latency_info) override;
243 void AcceleratedWidgetHitError() override;
244 241
245 // Overridden from BridgedNativeWidgetOwner: 242 // Overridden from BridgedNativeWidgetOwner:
246 NSWindow* GetNSWindow() override; 243 NSWindow* GetNSWindow() override;
247 gfx::Vector2d GetChildWindowOffset() const override; 244 gfx::Vector2d GetChildWindowOffset() const override;
248 bool IsVisibleParent() const override; 245 bool IsVisibleParent() const override;
249 void RemoveChildWindow(BridgedNativeWidget* child) override; 246 void RemoveChildWindow(BridgedNativeWidget* child) override;
250 247
251 views::NativeWidgetMac* native_widget_mac_; // Weak. Owns this. 248 views::NativeWidgetMac* native_widget_mac_; // Weak. Owns this.
252 base::scoped_nsobject<NSWindow> window_; 249 base::scoped_nsobject<NSWindow> window_;
253 base::scoped_nsobject<ViewsNSWindowDelegate> window_delegate_; 250 base::scoped_nsobject<ViewsNSWindowDelegate> window_delegate_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // If true, the window has been made visible or changed shape and the window 286 // If true, the window has been made visible or changed shape and the window
290 // shadow needs to be invalidated when a frame is received for the new shape. 287 // shadow needs to be invalidated when a frame is received for the new shape.
291 bool invalidate_shadow_on_frame_swap_ = false; 288 bool invalidate_shadow_on_frame_swap_ = false;
292 289
293 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 290 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
294 }; 291 };
295 292
296 } // namespace views 293 } // namespace views
297 294
298 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 295 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698