| 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 #include "web_intent_picker_test_base.h" | |
| 6 | |
| 7 #include "chrome/browser/ui/cocoa/web_intent_picker_cocoa.h" | |
| 8 #import "chrome/browser/ui/cocoa/web_intent_sheet_controller.h" | |
| 9 | |
| 10 MockIntentPickerDelegate::MockIntentPickerDelegate() { | |
| 11 } | |
| 12 | |
| 13 MockIntentPickerDelegate::~MockIntentPickerDelegate() { | |
| 14 } | |
| 15 | |
| 16 WebIntentPickerTestBase::WebIntentPickerTestBase() { | |
| 17 } | |
| 18 | |
| 19 WebIntentPickerTestBase::~WebIntentPickerTestBase() { | |
| 20 } | |
| 21 | |
| 22 void WebIntentPickerTestBase::CreateBubble(TabContentsWrapper* wrapper) | |
| 23 { | |
| 24 picker_.reset(new WebIntentPickerCocoa(NULL, wrapper, &delegate_, &model_)); | |
| 25 | |
| 26 controller_ = | |
| 27 [[WebIntentPickerSheetController alloc] initWithPicker:picker_.get()]; | |
| 28 window_ = [controller_ window]; | |
| 29 [controller_ showWindow:nil]; | |
| 30 } | |
| OLD | NEW |