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

Side by Side Diff: chrome/browser/ui/webui/constrained_html_ui.h

Issue 8136027: Print Preview: Make print preview tab modal. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase, no renderer changes Created 9 years, 1 month 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WEBUI_CONSTRAINED_HTML_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CONSTRAINED_HTML_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_HTML_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CONSTRAINED_HTML_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/chrome_web_ui.h" 9 #include "chrome/browser/ui/webui/chrome_web_ui.h"
10 #include "content/common/property_bag.h" 10 #include "content/common/property_bag.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 static ConstrainedHtmlUIDelegate* CreateConstrainedHtmlDialog( 58 static ConstrainedHtmlUIDelegate* CreateConstrainedHtmlDialog(
59 Profile* profile, 59 Profile* profile,
60 HtmlDialogUIDelegate* delegate, 60 HtmlDialogUIDelegate* delegate,
61 TabContentsWrapper* overshadowed); 61 TabContentsWrapper* overshadowed);
62 62
63 // Returns a property accessor that can be used to set the 63 // Returns a property accessor that can be used to set the
64 // ConstrainedHtmlUIDelegate property on a TabContents. 64 // ConstrainedHtmlUIDelegate property on a TabContents.
65 static PropertyAccessor<ConstrainedHtmlUIDelegate*>& 65 static PropertyAccessor<ConstrainedHtmlUIDelegate*>&
66 GetPropertyAccessor(); 66 GetPropertyAccessor();
67 67
68 private: 68 protected:
69 // Returns the TabContents' PropertyBag's ConstrainedHtmlUIDelegate. 69 // Returns the TabContents' PropertyBag's ConstrainedHtmlUIDelegate.
70 // Returns NULL if that property is not set. 70 // Returns NULL if that property is not set.
71 ConstrainedHtmlUIDelegate* GetConstrainedDelegate(); 71 ConstrainedHtmlUIDelegate* GetConstrainedDelegate();
72 72
73 private:
73 // JS Message Handler 74 // JS Message Handler
74 void OnDialogCloseMessage(const base::ListValue* args); 75 void OnDialogCloseMessage(const base::ListValue* args);
75 76
76 DISALLOW_COPY_AND_ASSIGN(ConstrainedHtmlUI); 77 DISALLOW_COPY_AND_ASSIGN(ConstrainedHtmlUI);
77 }; 78 };
78 79
79 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_HTML_UI_H_ 80 #endif // CHROME_BROWSER_UI_WEBUI_CONSTRAINED_HTML_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698