Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / android / window_android_helper.h
blobe097d11a31ec203cd4a3ed69f7aa19e149036f67
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.
5 #ifndef CHROME_BROWSER_UI_ANDROID_WINDOW_ANDROID_HELPER_H_
6 #define CHROME_BROWSER_UI_ANDROID_WINDOW_ANDROID_HELPER_H_
8 #include "content/public/browser/web_contents_user_data.h"
10 namespace ui {
11 class WindowAndroid;
14 // Per-tab class to provide access to WindowAndroid object.
15 class WindowAndroidHelper
16 : public content::WebContentsUserData<WindowAndroidHelper> {
17 public:
18 ~WindowAndroidHelper() override;
20 void SetWindowAndroid(ui::WindowAndroid* window_android);
21 ui::WindowAndroid* GetWindowAndroid();
23 private:
24 explicit WindowAndroidHelper(content::WebContents* web_contents);
25 friend class content::WebContentsUserData<WindowAndroidHelper>;
27 // The owning window that has a hold of main application activity.
28 ui::WindowAndroid* window_android_;
30 DISALLOW_COPY_AND_ASSIGN(WindowAndroidHelper);
33 #endif // CHROME_BROWSER_UI_ANDROID_WINDOW_ANDROID_HELPER_H_