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

Side by Side Diff: extensions/browser/app_window/test_app_window_contents.cc

Issue 1685003002: Plumb the correct owner document through DocumentInit::m_owner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/app_window/test_app_window_contents.h" 5 #include "extensions/browser/app_window/test_app_window_contents.h"
6 6
7 #include "content/public/browser/web_contents.h" 7 #include "content/public/browser/web_contents.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
11 TestAppWindowContents::TestAppWindowContents(content::WebContents* web_contents) 11 TestAppWindowContents::TestAppWindowContents(content::WebContents* web_contents)
12 : web_contents_(web_contents) { 12 : web_contents_(web_contents) {
13 } 13 }
14 14
15 TestAppWindowContents::~TestAppWindowContents() { 15 TestAppWindowContents::~TestAppWindowContents() {
16 } 16 }
17 17
18 void TestAppWindowContents::Initialize(content::BrowserContext* context, 18 void TestAppWindowContents::Initialize(content::BrowserContext* context,
19 const GURL& url) { 19 content::RenderFrameHost* creator_frame,
20 } 20 const GURL& url) {}
21 21
22 void TestAppWindowContents::LoadContents(int32_t creator_process_id) {} 22 void TestAppWindowContents::LoadContents(int32_t creator_process_id) {}
23 23
24 void TestAppWindowContents::NativeWindowChanged( 24 void TestAppWindowContents::NativeWindowChanged(
25 NativeAppWindow* native_app_window) { 25 NativeAppWindow* native_app_window) {
26 } 26 }
27 27
28 void TestAppWindowContents::NativeWindowClosed() { 28 void TestAppWindowContents::NativeWindowClosed() {
29 } 29 }
30 30
31 void TestAppWindowContents::DispatchWindowShownForTests() const { 31 void TestAppWindowContents::DispatchWindowShownForTests() const {
32 } 32 }
33 33
34 void TestAppWindowContents::OnWindowReady() {} 34 void TestAppWindowContents::OnWindowReady() {}
35 35
36 content::WebContents* TestAppWindowContents::GetWebContents() const { 36 content::WebContents* TestAppWindowContents::GetWebContents() const {
37 return web_contents_.get(); 37 return web_contents_.get();
38 } 38 }
39 39
40 WindowController* TestAppWindowContents::GetWindowController() const { 40 WindowController* TestAppWindowContents::GetWindowController() const {
41 return nullptr; 41 return nullptr;
42 } 42 }
43 43
44 } // namespace extensions 44 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698