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

Unified Diff: ui/android/view_android.h

Issue 2259493005: Let PowerSaveBlocker manager anchor view in Java side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/power_save_blocker/power_save_blocker_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/view_android.h
diff --git a/ui/android/view_android.h b/ui/android/view_android.h
index a996e6804bbc10fc38449e43b34be7937fab6942..17a1bafdce8ffac46211b8c93c26b5474cc3678e 100644
--- a/ui/android/view_android.h
+++ b/ui/android/view_android.h
@@ -86,18 +86,18 @@ class UI_ANDROID_EXPORT ViewAndroid {
void SetAnchorRect(const base::android::JavaRef<jobject>& anchor,
const gfx::RectF& bounds);
- protected:
- ViewAndroid* parent_;
-
- private:
- void RemoveChild(ViewAndroid* child);
-
// Returns the Java delegate for this view. This is used to delegate work
// up to the embedding view (or the embedder that can deal with the
// implementation details).
const base::android::ScopedJavaLocalRef<jobject>
boliu 2016/08/19 18:49:58 err, maybe return GlobalRef if this is public? al
Jinsuk Kim 2016/08/19 20:44:46 Done.
GetViewAndroidDelegate() const;
+ protected:
+ ViewAndroid* parent_;
+
+ private:
+ void RemoveChild(ViewAndroid* child);
+
std::list<ViewAndroid*> children_;
scoped_refptr<cc::Layer> layer_;
JavaObjectWeakGlobalRef delegate_;
« no previous file with comments | « device/power_save_blocker/power_save_blocker_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698