OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |