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

Side by Side Diff: chrome/browser/ui/tab_helpers.h

Issue 1125343004: Add a "Simplify Page" option to the print preview dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring following the proposals in the reviews Created 5 years, 5 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 #ifndef CHROME_BROWSER_UI_TAB_HELPERS_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_HELPERS_H_
6 #define CHROME_BROWSER_UI_TAB_HELPERS_H_ 6 #define CHROME_BROWSER_UI_TAB_HELPERS_H_
7 7
8 namespace content { 8 namespace content {
9 class WebContents; 9 class WebContents;
10 } 10 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // chrome::Navigate creates WebContents that are destined for the tab strip, 44 // chrome::Navigate creates WebContents that are destined for the tab strip,
45 // and that might have WebUI that immediately calls back into random tab 45 // and that might have WebUI that immediately calls back into random tab
46 // helpers. 46 // helpers.
47 friend class BrowserNavigatorWebContentsAdoption; 47 friend class BrowserNavigatorWebContentsAdoption;
48 48
49 // Prerendering loads pages that have arbitrary external content; it needs 49 // Prerendering loads pages that have arbitrary external content; it needs
50 // the full set of tab helpers to deal with it. 50 // the full set of tab helpers to deal with it.
51 friend class prerender::PrerenderContents; 51 friend class prerender::PrerenderContents;
52 52
53 // The print preview distiller needs to generate print previews,
54 // which is supported by tab helpers.
Avi (use Gerrit) 2015/07/21 20:47:58 But not *all* the tab helpers. Please explicitly a
arjunpatel 2015/07/23 16:19:45 Acknowledged.
55 friend class PrintPreviewDistiller;
56
53 // Adopts the specified WebContents as a full-fledged browser tab, attaching 57 // Adopts the specified WebContents as a full-fledged browser tab, attaching
54 // all the associated tab helpers that are needed for the WebContents to 58 // all the associated tab helpers that are needed for the WebContents to
55 // serve in that role. It is safe to call this on a WebContents that was 59 // serve in that role. It is safe to call this on a WebContents that was
56 // already adopted. 60 // already adopted.
57 static void AttachTabHelpers(content::WebContents* web_contents); 61 static void AttachTabHelpers(content::WebContents* web_contents);
58 }; 62 };
59 63
60 #endif // CHROME_BROWSER_UI_TAB_HELPERS_H_ 64 #endif // CHROME_BROWSER_UI_TAB_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698