| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_HTML_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual string16 GetDialogTitle() const OVERRIDE; | 73 virtual string16 GetDialogTitle() const OVERRIDE; |
| 74 virtual GURL GetDialogContentURL() const OVERRIDE; | 74 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 75 virtual void GetWebUIMessageHandlers( | 75 virtual void GetWebUIMessageHandlers( |
| 76 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; | 76 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 77 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 77 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 78 virtual std::string GetDialogArgs() const OVERRIDE; | 78 virtual std::string GetDialogArgs() const OVERRIDE; |
| 79 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 79 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 80 virtual void OnCloseContents(content::WebContents* source, | 80 virtual void OnCloseContents(content::WebContents* source, |
| 81 bool* out_close_dialog) OVERRIDE; | 81 bool* out_close_dialog) OVERRIDE; |
| 82 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 82 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 83 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 83 virtual bool HandleContextMenu( |
| 84 const content::ContextMenuParams& params) OVERRIDE; |
| 84 | 85 |
| 85 // Overridden from content::WebContentsDelegate: | 86 // Overridden from content::WebContentsDelegate: |
| 86 virtual void MoveContents(content::WebContents* source, | 87 virtual void MoveContents(content::WebContents* source, |
| 87 const gfx::Rect& pos) OVERRIDE; | 88 const gfx::Rect& pos) OVERRIDE; |
| 88 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) | 89 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) |
| 89 OVERRIDE; | 90 OVERRIDE; |
| 90 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 91 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| 91 virtual content::WebContents* OpenURLFromTab( | 92 virtual content::WebContents* OpenURLFromTab( |
| 92 content::WebContents* source, | 93 content::WebContents* source, |
| 93 const content::OpenURLParams& params) OVERRIDE; | 94 const content::OpenURLParams& params) OVERRIDE; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 124 // using this variable. | 125 // using this variable. |
| 125 HtmlDialogUIDelegate* delegate_; | 126 HtmlDialogUIDelegate* delegate_; |
| 126 | 127 |
| 127 // Controls lifetime of dialog. | 128 // Controls lifetime of dialog. |
| 128 scoped_ptr<HtmlDialogController> dialog_controller_; | 129 scoped_ptr<HtmlDialogController> dialog_controller_; |
| 129 | 130 |
| 130 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); | 131 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 134 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
| OLD | NEW |