Chromium Code Reviews| 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..e771ea224f0a5e2dc186c9a38e6bf8aceddeb934 |
| --- /dev/null |
| +++ b/chrome/browser/ui/android/window_android_helper.h |
| @@ -0,0 +1,32 @@ |
| +// 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; |
| +} |
| + |
| +class WindowAndroidHelper |
| + : public content::WebContentsUserData<WindowAndroidHelper> { |
|
Ted C
2012/10/10 17:41:21
+2 indent
aurimas (slooooooooow)
2012/10/10 18:07:48
Done.
|
| + 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_ |