| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 // Returns true if this window has a mouse capture. | 245 // Returns true if this window has a mouse capture. |
| 246 bool HasCapture(); | 246 bool HasCapture(); |
| 247 | 247 |
| 248 // Returns the first ancestor whose parent window returns true from | 248 // Returns the first ancestor whose parent window returns true from |
| 249 // IsToplevelWindowContainer. | 249 // IsToplevelWindowContainer. |
| 250 Window* GetToplevelWindow(); | 250 Window* GetToplevelWindow(); |
| 251 | 251 |
| 252 // Returns true if this window is fullscreen or contains a fullscreen window. | 252 // Returns true if this window is fullscreen or contains a fullscreen window. |
| 253 bool IsOrContainsFullscreenWindow() const; | 253 bool IsOrContainsFullscreenWindow() const; |
| 254 | 254 |
| 255 // Sets the opacity of the window. |
| 256 void SetOpacity(unsigned char opacity); |
| 257 |
| 255 // Returns an animation configured with the default duration. All animations | 258 // Returns an animation configured with the default duration. All animations |
| 256 // should use this. Caller owns returned value. | 259 // should use this. Caller owns returned value. |
| 257 static ui::Animation* CreateDefaultAnimation(); | 260 static ui::Animation* CreateDefaultAnimation(); |
| 258 | 261 |
| 259 protected: | 262 protected: |
| 260 // Returns the desktop or NULL if we aren't yet attached to a desktop. | 263 // Returns the desktop or NULL if we aren't yet attached to a desktop. |
| 261 virtual Desktop* GetDesktop(); | 264 virtual Desktop* GetDesktop(); |
| 262 | 265 |
| 263 private: | 266 private: |
| 264 friend class LayoutManager; | 267 friend class LayoutManager; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 bool stops_event_propagation_; | 331 bool stops_event_propagation_; |
| 329 | 332 |
| 330 ObserverList<WindowObserver> observers_; | 333 ObserverList<WindowObserver> observers_; |
| 331 | 334 |
| 332 DISALLOW_COPY_AND_ASSIGN(Window); | 335 DISALLOW_COPY_AND_ASSIGN(Window); |
| 333 }; | 336 }; |
| 334 | 337 |
| 335 } // namespace aura | 338 } // namespace aura |
| 336 | 339 |
| 337 #endif // UI_AURA_WINDOW_H_ | 340 #endif // UI_AURA_WINDOW_H_ |
| OLD | NEW |