| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |