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

Side by Side Diff: ui/android/view_android.h

Issue 2272673003: Remove anchor view from container when reset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | ui/android/view_android.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ANDROID_VIEW_ANDROID_H_ 5 #ifndef UI_ANDROID_VIEW_ANDROID_H_
6 #define UI_ANDROID_VIEW_ANDROID_H_ 6 #define UI_ANDROID_VIEW_ANDROID_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // use the next available parent's delegate. 58 // use the next available parent's delegate.
59 ViewAndroid(const base::android::JavaRef<jobject>& delegate); 59 ViewAndroid(const base::android::JavaRef<jobject>& delegate);
60 60
61 ViewAndroid(); 61 ViewAndroid();
62 virtual ~ViewAndroid(); 62 virtual ~ViewAndroid();
63 63
64 // Returns the window at the root of this hierarchy, or |null| 64 // Returns the window at the root of this hierarchy, or |null|
65 // if disconnected. 65 // if disconnected.
66 virtual WindowAndroid* GetWindowAndroid() const; 66 virtual WindowAndroid* GetWindowAndroid() const;
67 67
68 // Set the root |WindowAndroid|. This is only valid for root
69 // nodes and must not be called for children.
70 void SetWindowAndroid(WindowAndroid* root_window);
71
72 // Used to return and set the layer for this view. May be |null|. 68 // Used to return and set the layer for this view. May be |null|.
73 cc::Layer* GetLayer() const; 69 cc::Layer* GetLayer() const;
74 void SetLayer(scoped_refptr<cc::Layer> layer); 70 void SetLayer(scoped_refptr<cc::Layer> layer);
75 71
76 // Adds this view as a child of another view. 72 // Adds this view as a child of another view.
77 void AddChild(ViewAndroid* child); 73 void AddChild(ViewAndroid* child);
78 74
79 // Detaches this view from its parent. 75 // Detaches this view from its parent.
80 void RemoveFromParent(); 76 void RemoveFromParent();
81 77
(...skipping 19 matching lines...) Expand all
101 std::list<ViewAndroid*> children_; 97 std::list<ViewAndroid*> children_;
102 scoped_refptr<cc::Layer> layer_; 98 scoped_refptr<cc::Layer> layer_;
103 JavaObjectWeakGlobalRef delegate_; 99 JavaObjectWeakGlobalRef delegate_;
104 100
105 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); 101 DISALLOW_COPY_AND_ASSIGN(ViewAndroid);
106 }; 102 };
107 103
108 } // namespace ui 104 } // namespace ui
109 105
110 #endif // UI_ANDROID_VIEW_ANDROID_H_ 106 #endif // UI_ANDROID_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | ui/android/view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698