| OLD | NEW |
| 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_AURA_WINDOW_H_ | 5 #ifndef UI_AURA_WINDOW_H_ |
| 6 #define UI_AURA_WINDOW_H_ | 6 #define UI_AURA_WINDOW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 // TODO(benrg): Find a better solution. | 293 // TODO(benrg): Find a better solution. |
| 294 void SetNativeWindowProperty(const char* key, void* value); | 294 void SetNativeWindowProperty(const char* key, void* value); |
| 295 void* GetNativeWindowProperty(const char* key) const; | 295 void* GetNativeWindowProperty(const char* key) const; |
| 296 | 296 |
| 297 // Type of a function to delete a property that this window owns. | 297 // Type of a function to delete a property that this window owns. |
| 298 //typedef void (*PropertyDeallocator)(int64_t value); | 298 //typedef void (*PropertyDeallocator)(int64_t value); |
| 299 | 299 |
| 300 // Overridden from ui::LayerDelegate: | 300 // Overridden from ui::LayerDelegate: |
| 301 void OnDeviceScaleFactorChanged(float device_scale_factor) override; | 301 void OnDeviceScaleFactorChanged(float device_scale_factor) override; |
| 302 | 302 |
| 303 #if !defined(NDEBUG) | |
| 304 // These methods are useful when debugging. | 303 // These methods are useful when debugging. |
| 305 std::string GetDebugInfo() const; | 304 std::string GetDebugInfo() const; |
| 306 void PrintWindowHierarchy(int depth) const; | 305 void PrintWindowHierarchy(int depth) const; |
| 307 #endif | |
| 308 | 306 |
| 309 // Returns true if there was state needing to be cleaned up. | 307 // Returns true if there was state needing to be cleaned up. |
| 310 bool CleanupGestureState(); | 308 bool CleanupGestureState(); |
| 311 | 309 |
| 312 // Create a CompositorFrameSink for the aura::Window. | 310 // Create a CompositorFrameSink for the aura::Window. |
| 313 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink(); | 311 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink(); |
| 314 | 312 |
| 315 // Get the current cc::SurfaceId. | 313 // Get the current cc::SurfaceId. |
| 316 cc::SurfaceId GetSurfaceId() const; | 314 cc::SurfaceId GetSurfaceId() const; |
| 317 | 315 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 bool ignore_events_; | 485 bool ignore_events_; |
| 488 | 486 |
| 489 base::ObserverList<WindowObserver, true> observers_; | 487 base::ObserverList<WindowObserver, true> observers_; |
| 490 | 488 |
| 491 DISALLOW_COPY_AND_ASSIGN(Window); | 489 DISALLOW_COPY_AND_ASSIGN(Window); |
| 492 }; | 490 }; |
| 493 | 491 |
| 494 } // namespace aura | 492 } // namespace aura |
| 495 | 493 |
| 496 #endif // UI_AURA_WINDOW_H_ | 494 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |