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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 #include "chrome/browser/ui/android/window_android_helper.h"
6
7 #include "content/public/browser/web_contents.h"
8
9 namespace ui {
10 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.
11 }
12
13 using content::WebContents;
14
15 DEFINE_WEB_CONTENTS_USER_DATA_KEY(WindowAndroidHelper)
16
17 WindowAndroidHelper::WindowAndroidHelper(WebContents* web_contents) {
18 }
19
20 void WindowAndroidHelper::setWindowAndroid(ui::WindowAndroid* windowAndroid) {
21 window_android_ = windowAndroid;
22 }
Ted C 2012/10/09 22:47:54 blank line between these two.
aurimas (slooooooooow) 2012/10/10 00:22:14 Done.
23 ui::WindowAndroid* WindowAndroidHelper::getWindowAndroid() {
24 return window_android_;
25 }
26
27 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.
28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698