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

Side by Side Diff: chrome/browser/printing/printing_ui_web_contents_observer.cc

Issue 480303002: Use document from preview for System Dialog printing on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tue 08/19/2014 11:17:57.84 Created 6 years, 4 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/printing/printing_ui_web_contents_observer.h" 5 #include "chrome/browser/printing/printing_ui_web_contents_observer.h"
6 6
7 #include "content/public/browser/browser_thread.h" 7 #include "content/public/browser/browser_thread.h"
8 #include "content/public/browser/web_contents.h" 8 #include "content/public/browser/web_contents.h"
9 9
10 PrintingUIWebContentsObserver::PrintingUIWebContentsObserver( 10 PrintingUIWebContentsObserver::PrintingUIWebContentsObserver(
11 content::WebContents* web_contents) 11 content::WebContents* web_contents)
12 : content::WebContentsObserver(web_contents) { 12 : content::WebContentsObserver(web_contents) {
13 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 13 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
14 } 14 }
15 15
16 PrintingUIWebContentsObserver::~PrintingUIWebContentsObserver() {
17 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
18 }
19
16 gfx::NativeView PrintingUIWebContentsObserver::GetParentView() { 20 gfx::NativeView PrintingUIWebContentsObserver::GetParentView() {
17 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); 21 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
18 return web_contents() ? web_contents()->GetNativeView() : NULL; 22 return web_contents() ? web_contents()->GetNativeView() : NULL;
19 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698