| 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_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 27 matching lines...) Expand all Loading... |
| 38 // Initializes the contents of the dialog (the DOMView and the callbacks). | 38 // Initializes the contents of the dialog (the DOMView and the callbacks). |
| 39 gfx::NativeWindow InitDialog(); | 39 gfx::NativeWindow InitDialog(); |
| 40 | 40 |
| 41 // Overridden from HtmlDialogUIDelegate: | 41 // Overridden from HtmlDialogUIDelegate: |
| 42 virtual ui::ModalType GetDialogModalType() const OVERRIDE; | 42 virtual ui::ModalType GetDialogModalType() const OVERRIDE; |
| 43 virtual string16 GetDialogTitle() const OVERRIDE; | 43 virtual string16 GetDialogTitle() const OVERRIDE; |
| 44 virtual GURL GetDialogContentURL() const OVERRIDE; | 44 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 45 virtual void GetWebUIMessageHandlers( | 45 virtual void GetWebUIMessageHandlers( |
| 46 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; | 46 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 47 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 47 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 48 virtual void GetMinimumDialogSize(gfx::Size* size) const OVERRIDE; |
| 48 virtual std::string GetDialogArgs() const OVERRIDE; | 49 virtual std::string GetDialogArgs() const OVERRIDE; |
| 49 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 50 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 50 virtual void OnCloseContents(content::WebContents* source, | 51 virtual void OnCloseContents(content::WebContents* source, |
| 51 bool* out_close_dialog) OVERRIDE; | 52 bool* out_close_dialog) OVERRIDE; |
| 52 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 53 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 53 | 54 |
| 54 // Overridden from content::WebContentsDelegate: | 55 // Overridden from content::WebContentsDelegate: |
| 55 virtual void HandleKeyboardEvent( | 56 virtual void HandleKeyboardEvent( |
| 56 const NativeWebKeyboardEvent& event) OVERRIDE; | 57 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 57 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 58 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 79 GtkWidget* dialog_; | 80 GtkWidget* dialog_; |
| 80 | 81 |
| 81 scoped_ptr<HtmlDialogController> dialog_controller_; | 82 scoped_ptr<HtmlDialogController> dialog_controller_; |
| 82 scoped_ptr<TabContentsWrapper> tab_; | 83 scoped_ptr<TabContentsWrapper> tab_; |
| 83 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; | 84 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk); | 86 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 #endif // CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_ | 89 #endif // CHROME_BROWSER_UI_GTK_HTML_DIALOG_GTK_H_ |
| OLD | NEW |