| 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_GTK_HTML_DIALOG_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 virtual ~HtmlDialogGtk(); | 32 virtual ~HtmlDialogGtk(); |
| 33 | 33 |
| 34 // Initializes the contents of the dialog (the DOMView and the callbacks). | 34 // Initializes the contents of the dialog (the DOMView and the callbacks). |
| 35 gfx::NativeWindow InitDialog(); | 35 gfx::NativeWindow InitDialog(); |
| 36 | 36 |
| 37 // Overridden from HtmlDialogUIDelegate: | 37 // Overridden from HtmlDialogUIDelegate: |
| 38 virtual bool IsDialogModal() const OVERRIDE; | 38 virtual bool IsDialogModal() const OVERRIDE; |
| 39 virtual string16 GetDialogTitle() const OVERRIDE; | 39 virtual string16 GetDialogTitle() const OVERRIDE; |
| 40 virtual GURL GetDialogContentURL() const OVERRIDE; | 40 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 41 virtual void GetWebUIMessageHandlers( | 41 virtual void GetWebUIMessageHandlers( |
| 42 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; | 42 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 43 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 43 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 44 virtual std::string GetDialogArgs() const OVERRIDE; | 44 virtual std::string GetDialogArgs() const OVERRIDE; |
| 45 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 45 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 46 virtual void OnCloseContents(content::WebContents* source, | 46 virtual void OnCloseContents(content::WebContents* source, |
| 47 bool* out_close_dialog) OVERRIDE; | 47 bool* out_close_dialog) OVERRIDE; |
| 48 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 48 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 49 | 49 |
| 50 // Overridden from content::WebContentsDelegate: | 50 // Overridden from content::WebContentsDelegate: |
| 51 virtual void HandleKeyboardEvent( | 51 virtual void HandleKeyboardEvent( |
| 52 const NativeWebKeyboardEvent& event) OVERRIDE; | 52 const NativeWebKeyboardEvent& event) OVERRIDE; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 65 | 65 |
| 66 GtkWidget* dialog_; | 66 GtkWidget* dialog_; |
| 67 | 67 |
| 68 scoped_ptr<TabContentsWrapper> tab_; | 68 scoped_ptr<TabContentsWrapper> tab_; |
| 69 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; | 69 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk); | 71 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 #endif // CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_ | 74 #endif // CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_ |
| OLD | NEW |