Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: chrome/browser/ui/android/window_android_helper.cc

Issue 11098008: Adding a WindowAndroidHelper class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
+}

Powered by Google App Engine
This is Rietveld 408576698