Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_ANDROID_WINDOW_ANDROID_HELPER_H_ | |
| 6 #define CHROME_BROWSER_UI_ANDROID_WINDOW_ANDROID_HELPER_H_ | |
| 7 | |
| 8 #include "content/public/browser/web_contents_user_data.h" | |
| 9 | |
| 10 namespace ui { | |
| 11 class WindowAndroid; | |
| 12 } | |
| 13 | |
| 14 class WindowAndroidHelper | |
|
Yaron
2012/10/10 18:16:49
Class-level comment.
aurimas (slooooooooow)
2012/10/10 18:54:50
Done.
| |
| 15 : public content::WebContentsUserData<WindowAndroidHelper> { | |
| 16 public: | |
| 17 virtual ~WindowAndroidHelper(); | |
| 18 | |
| 19 void SetWindowAndroid(ui::WindowAndroid* window_android); | |
| 20 ui::WindowAndroid* GetWindowAndroid(); | |
| 21 | |
| 22 private: | |
| 23 explicit WindowAndroidHelper(content::WebContents* web_contents); | |
| 24 friend class content::WebContentsUserData<WindowAndroidHelper>; | |
| 25 | |
| 26 // The owning window that has a hold of main application activity. | |
| 27 ui::WindowAndroid* window_android_; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(WindowAndroidHelper); | |
| 30 }; | |
| 31 | |
| 32 #endif // CHROME_BROWSER_UI_ANDROID_WINDOW_ANDROID_HELPER_H_ | |
| OLD | NEW |