OLD | NEW |
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 // Overridden from ui::LayerDelegate: | 222 // Overridden from ui::LayerDelegate: |
223 void OnPaintLayer(const ui::PaintContext& context) override; | 223 void OnPaintLayer(const ui::PaintContext& context) override; |
224 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override; | 224 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override; |
225 void OnDeviceScaleFactorChanged(float device_scale_factor) override; | 225 void OnDeviceScaleFactorChanged(float device_scale_factor) override; |
226 base::Closure PrepareForLayerBoundsChange() override; | 226 base::Closure PrepareForLayerBoundsChange() override; |
227 | 227 |
228 // Overridden from ui::AcceleratedWidgetMac: | 228 // Overridden from ui::AcceleratedWidgetMac: |
229 NSView* AcceleratedWidgetGetNSView() const override; | 229 NSView* AcceleratedWidgetGetNSView() const override; |
230 bool AcceleratedWidgetShouldIgnoreBackpressure() const override; | 230 bool AcceleratedWidgetShouldIgnoreBackpressure() const override; |
231 uint32_t AcceleratedWidgetGetDisplayIDForVSync() const override; | |
232 void AcceleratedWidgetSwapCompleted( | 231 void AcceleratedWidgetSwapCompleted( |
233 const std::vector<ui::LatencyInfo>& latency_info) override; | 232 const std::vector<ui::LatencyInfo>& latency_info) override; |
234 void AcceleratedWidgetHitError() override; | 233 void AcceleratedWidgetHitError() override; |
235 | 234 |
236 // Overridden from BridgedNativeWidgetOwner: | 235 // Overridden from BridgedNativeWidgetOwner: |
237 NSWindow* GetNSWindow() override; | 236 NSWindow* GetNSWindow() override; |
238 gfx::Vector2d GetChildWindowOffset() const override; | 237 gfx::Vector2d GetChildWindowOffset() const override; |
239 bool IsVisibleParent() const override; | 238 bool IsVisibleParent() const override; |
240 void RemoveChildWindow(BridgedNativeWidget* child) override; | 239 void RemoveChildWindow(BridgedNativeWidget* child) override; |
241 | 240 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 // If true, the window has been made visible or changed shape and the window | 279 // If true, the window has been made visible or changed shape and the window |
281 // shadow needs to be invalidated when a frame is received for the new shape. | 280 // shadow needs to be invalidated when a frame is received for the new shape. |
282 bool invalidate_shadow_on_frame_swap_ = false; | 281 bool invalidate_shadow_on_frame_swap_ = false; |
283 | 282 |
284 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); | 283 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); |
285 }; | 284 }; |
286 | 285 |
287 } // namespace views | 286 } // namespace views |
288 | 287 |
289 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ | 288 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ |
OLD | NEW |