Chromium Code Reviews| Index: chrome/browser/ui/android/window_android_helper.cc |
| diff --git a/chrome/browser/ui/android/window_android_helper.cc b/chrome/browser/ui/android/window_android_helper.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ff07fc6221661beeec3baa054be25c09b9ceeddc |
| --- /dev/null |
| +++ b/chrome/browser/ui/android/window_android_helper.cc |
| @@ -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. |
| + |
| +#include "chrome/browser/ui/android/window_android_helper.h" |
| + |
| +#include "content/public/browser/web_contents.h" |
| + |
| +namespace ui { |
| + class WindowAndroid; |
|
Ted C
2012/10/09 22:47:54
why aren't you importing the header instead of for
aurimas (slooooooooow)
2012/10/10 00:22:14
Done.
|
| +} |
| + |
| +using content::WebContents; |
| + |
| +DEFINE_WEB_CONTENTS_USER_DATA_KEY(WindowAndroidHelper) |
| + |
| +WindowAndroidHelper::WindowAndroidHelper(WebContents* web_contents) { |
| +} |
| + |
| +void WindowAndroidHelper::setWindowAndroid(ui::WindowAndroid* windowAndroid) { |
| + window_android_ = windowAndroid; |
| +} |
|
Ted C
2012/10/09 22:47:54
blank line between these two.
aurimas (slooooooooow)
2012/10/10 00:22:14
Done.
|
| +ui::WindowAndroid* WindowAndroidHelper::getWindowAndroid() { |
| + return window_android_; |
| +} |
| + |
| +WindowAndroidHelper::~WindowAndroidHelper() { |
|
Ted C
2012/10/09 22:47:54
the destructor should go above the two methods up
aurimas (slooooooooow)
2012/10/10 00:22:14
Done.
|
| +} |