Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: ui/aura/window.h

Issue 10444014: ash: Improved window maximize/restore animations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix lock screen, app windows Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/compiler_specific.h"
14 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 16 #include "base/observer_list.h"
16 #include "base/string16.h" 17 #include "base/string16.h"
17 #include "ui/aura/aura_export.h" 18 #include "ui/aura/aura_export.h"
18 #include "ui/aura/client/window_types.h" 19 #include "ui/aura/client/window_types.h"
19 #include "ui/base/events.h" 20 #include "ui/base/events.h"
20 #include "ui/base/gestures/gesture_types.h" 21 #include "ui/base/gestures/gesture_types.h"
21 #include "ui/compositor/layer_animator.h" 22 #include "ui/compositor/layer_animator.h"
22 #include "ui/compositor/layer_delegate.h" 23 #include "ui/compositor/layer_delegate.h"
23 #include "ui/compositor/layer_owner.h" 24 #include "ui/compositor/layer_owner.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 70
70 DISALLOW_COPY_AND_ASSIGN(TestApi); 71 DISALLOW_COPY_AND_ASSIGN(TestApi);
71 }; 72 };
72 73
73 explicit Window(WindowDelegate* delegate); 74 explicit Window(WindowDelegate* delegate);
74 virtual ~Window(); 75 virtual ~Window();
75 76
76 // Initializes the window. This creates the window's layer. 77 // Initializes the window. This creates the window's layer.
77 void Init(ui::LayerType layer_type); 78 void Init(ui::LayerType layer_type);
78 79
80 // Creates a new layer for the window. Erases the layer-owned bounds, so the
81 // caller may wish to set new bounds and other state on the window/layer.
82 // Returns the old layer, which can be used for animations. Caller owns the
83 // memory for the returned layer and must delete it when animation completes.
84 ui::Layer* RecreateLayer() WARN_UNUSED_RESULT;
85
79 void set_owned_by_parent(bool owned_by_parent) { 86 void set_owned_by_parent(bool owned_by_parent) {
80 owned_by_parent_ = owned_by_parent; 87 owned_by_parent_ = owned_by_parent;
81 } 88 }
82 89
83 // A type is used to identify a class of Windows and customize behavior such 90 // A type is used to identify a class of Windows and customize behavior such
84 // as event handling and parenting. This field should only be consumed by the 91 // as event handling and parenting. This field should only be consumed by the
85 // shell -- Aura itself shouldn't contain type-specific logic. 92 // shell -- Aura itself shouldn't contain type-specific logic.
86 client::WindowType type() const { return type_; } 93 client::WindowType type() const { return type_; }
87 void SetType(client::WindowType type); 94 void SetType(client::WindowType type);
88 95
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 }; 459 };
453 460
454 std::map<const void*, Value> prop_map_; 461 std::map<const void*, Value> prop_map_;
455 462
456 DISALLOW_COPY_AND_ASSIGN(Window); 463 DISALLOW_COPY_AND_ASSIGN(Window);
457 }; 464 };
458 465
459 } // namespace aura 466 } // namespace aura
460 467
461 #endif // UI_AURA_WINDOW_H_ 468 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698