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..39e37647d926074c7aa8366ed237591532b188af |
--- /dev/null |
+++ b/chrome/browser/ui/android/window_android_helper.h |
@@ -0,0 +1,28 @@ |
+// 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 "chrome/browser/common/web_contents_user_data.h" |
Avi (use Gerrit)
2012/10/09 21:30:50
This just moved.
#include "content/public/browser
aurimas (slooooooooow)
2012/10/10 00:22:14
Done.
|
+#include "ui/gfx/android/window_android.h" |
+ |
+class WindowAndroidHelper : public WebContentsUserData<WindowAndroidHelper> { |
Avi (use Gerrit)
2012/10/09 21:30:50
content::WebContentsUserData
aurimas (slooooooooow)
2012/10/10 00:22:14
Done.
|
+ public: |
+ virtual ~WindowAndroidHelper(); |
+ |
+ void setWindowAndroid(ui::WindowAndroid* windowAndroid); |
Ted C
2012/10/09 22:47:54
c++ style should be SetWindowAndroid (capitalizing
aurimas (slooooooooow)
2012/10/10 00:22:14
Done.
|
+ ui::WindowAndroid* getWindowAndroid(); |
+ |
+ private: |
+ explicit WindowAndroidHelper(content::WebContents* web_contents); |
+ friend class WebContentsUserData<WindowAndroidHelper>; |
Avi (use Gerrit)
2012/10/09 21:30:50
content::WebContentsUserData
aurimas (slooooooooow)
2012/10/10 00:22:14
Done.
|
+ |
+ // 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_ |