| 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 #pragma once |    7 #pragma once | 
|    8  |    8  | 
|    9 #include <map> |    9 #include <map> | 
|   10 #include <string> |   10 #include <string> | 
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  132   // LayoutManager may adjust the bounds. |  132   // LayoutManager may adjust the bounds. | 
|  133   void SetBounds(const gfx::Rect& new_bounds); |  133   void SetBounds(const gfx::Rect& new_bounds); | 
|  134  |  134  | 
|  135   // Returns the target bounds of the window. If the window's layer is |  135   // Returns the target bounds of the window. If the window's layer is | 
|  136   // not animating, it simply returns the current bounds. |  136   // not animating, it simply returns the current bounds. | 
|  137   gfx::Rect GetTargetBounds() const; |  137   gfx::Rect GetTargetBounds() const; | 
|  138  |  138  | 
|  139   // Marks the a portion of window as needing to be painted. |  139   // Marks the a portion of window as needing to be painted. | 
|  140   void SchedulePaintInRect(const gfx::Rect& rect); |  140   void SchedulePaintInRect(const gfx::Rect& rect); | 
|  141  |  141  | 
|  142   // Sets the contents of the window. |  | 
|  143   void SetCanvas(const SkCanvas& canvas, const gfx::Point& origin); |  | 
|  144  |  | 
|  145   // Assigns a new external texture to the window's layer. |  142   // Assigns a new external texture to the window's layer. | 
|  146   void SetExternalTexture(ui::Texture* texture); |  143   void SetExternalTexture(ui::Texture* texture); | 
|  147  |  144  | 
|  148   // Sets the parent window of the window. If NULL, the window is parented to |  145   // Sets the parent window of the window. If NULL, the window is parented to | 
|  149   // the root window. |  146   // the root window. | 
|  150   void SetParent(Window* parent); |  147   void SetParent(Window* parent); | 
|  151  |  148  | 
|  152   // Stacks the specified child of this Window at the front of the z-order. |  149   // Stacks the specified child of this Window at the front of the z-order. | 
|  153   void StackChildAtTop(Window* child); |  150   void StackChildAtTop(Window* child); | 
|  154  |  151  | 
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  400   // TODO(oshima): Consolidcate ViewProp and aura::window property |  397   // TODO(oshima): Consolidcate ViewProp and aura::window property | 
|  401   // implementation. |  398   // implementation. | 
|  402   std::map<const char*, void*> prop_map_; |  399   std::map<const char*, void*> prop_map_; | 
|  403  |  400  | 
|  404   DISALLOW_COPY_AND_ASSIGN(Window); |  401   DISALLOW_COPY_AND_ASSIGN(Window); | 
|  405 }; |  402 }; | 
|  406  |  403  | 
|  407 }  // namespace aura |  404 }  // namespace aura | 
|  408  |  405  | 
|  409 #endif  // UI_AURA_WINDOW_H_ |  406 #endif  // UI_AURA_WINDOW_H_ | 
| OLD | NEW |