| 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_ROOT_WINDOW_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_H_ |
| 6 #define UI_AURA_ROOT_WINDOW_H_ | 6 #define UI_AURA_ROOT_WINDOW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 virtual const RootWindow* GetRootWindow() const OVERRIDE; | 252 virtual const RootWindow* GetRootWindow() const OVERRIDE; |
| 253 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; | 253 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; |
| 254 | 254 |
| 255 // Overridden from ui::CompositorDelegate: | 255 // Overridden from ui::CompositorDelegate: |
| 256 virtual void ScheduleDraw() OVERRIDE; | 256 virtual void ScheduleDraw() OVERRIDE; |
| 257 | 257 |
| 258 // Overridden from ui::CompositorObserver: | 258 // Overridden from ui::CompositorObserver: |
| 259 virtual void OnCompositingStarted(ui::Compositor*) OVERRIDE; | 259 virtual void OnCompositingStarted(ui::Compositor*) OVERRIDE; |
| 260 virtual void OnCompositingEnded(ui::Compositor*) OVERRIDE; | 260 virtual void OnCompositingEnded(ui::Compositor*) OVERRIDE; |
| 261 | 261 |
| 262 // Overridden from ui::LayerDelegate: |
| 263 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 264 |
| 262 private: | 265 private: |
| 263 friend class Window; | 266 friend class Window; |
| 264 friend class CompositorLock; | 267 friend class CompositorLock; |
| 265 | 268 |
| 266 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, | 269 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
| 267 // sending exited and entered events as its value changes. | 270 // sending exited and entered events as its value changes. |
| 268 void HandleMouseMoved(const MouseEvent& event, Window* target); | 271 void HandleMouseMoved(const MouseEvent& event, Window* target); |
| 269 | 272 |
| 270 // Called whenever the |capture_window_| changes. | 273 // Called whenever the |capture_window_| changes. |
| 271 // Sends capture changed events to event filters for old capture window. | 274 // Sends capture changed events to event filters for old capture window. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 bool draw_on_compositor_unlock_; | 408 bool draw_on_compositor_unlock_; |
| 406 | 409 |
| 407 int draw_trace_count_; | 410 int draw_trace_count_; |
| 408 | 411 |
| 409 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 412 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 410 }; | 413 }; |
| 411 | 414 |
| 412 } // namespace aura | 415 } // namespace aura |
| 413 | 416 |
| 414 #endif // UI_AURA_ROOT_WINDOW_H_ | 417 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |