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

Unified Diff: chrome/browser/ui/android/window_android_helper.h

Issue 11137004: Revert "Revert"Adding a WindowAndroidHelper class" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky's nit Created 8 years, 2 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 | « chrome/browser/android/tab_base_android_impl.cc ('k') | chrome/browser/ui/android/window_android_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/window_android_helper.h
diff --git a/chrome/browser/ui/android/window_android_helper.h b/chrome/browser/ui/android/window_android_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..925ca679ef58b744eb368e77cb158bb1aa45deae
--- /dev/null
+++ b/chrome/browser/ui/android/window_android_helper.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ANDROID_WINDOW_ANDROID_HELPER_H_
+#define CHROME_BROWSER_UI_ANDROID_WINDOW_ANDROID_HELPER_H_
+
+#include "content/public/browser/web_contents_user_data.h"
+
+namespace ui {
+class WindowAndroid;
+}
+
+// Per-tab class to provide access to WindowAndroid object.
+class WindowAndroidHelper
+ : public content::WebContentsUserData<WindowAndroidHelper> {
+ public:
+ virtual ~WindowAndroidHelper();
+
+ void SetWindowAndroid(ui::WindowAndroid* window_android);
+ ui::WindowAndroid* GetWindowAndroid();
+
+ private:
+ explicit WindowAndroidHelper(content::WebContents* web_contents);
+ friend class content::WebContentsUserData<WindowAndroidHelper>;
+
+ // The owning window that has a hold of main application activity.
+ ui::WindowAndroid* window_android_;
+
+ DISALLOW_COPY_AND_ASSIGN(WindowAndroidHelper);
+};
+
+#endif // CHROME_BROWSER_UI_ANDROID_WINDOW_ANDROID_HELPER_H_
« no previous file with comments | « chrome/browser/android/tab_base_android_impl.cc ('k') | chrome/browser/ui/android/window_android_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698