| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual gfx::Size GetPreferredSize() OVERRIDE; | 54 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 55 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) | 55 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) |
| 56 OVERRIDE; | 56 OVERRIDE; |
| 57 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child) | 57 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child) |
| 58 OVERRIDE; | 58 OVERRIDE; |
| 59 | 59 |
| 60 // Overridden from views::WidgetDelegate: | 60 // Overridden from views::WidgetDelegate: |
| 61 virtual bool CanResize() const OVERRIDE; | 61 virtual bool CanResize() const OVERRIDE; |
| 62 virtual ui::ModalType GetModalType() const OVERRIDE; | 62 virtual ui::ModalType GetModalType() const OVERRIDE; |
| 63 virtual string16 GetWindowTitle() const OVERRIDE; | 63 virtual string16 GetWindowTitle() const OVERRIDE; |
| 64 virtual std::string GetWindowName() const OVERRIDE; |
| 64 virtual void WindowClosing() OVERRIDE; | 65 virtual void WindowClosing() OVERRIDE; |
| 65 virtual views::View* GetContentsView() OVERRIDE; | 66 virtual views::View* GetContentsView() OVERRIDE; |
| 66 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 67 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| 67 virtual bool ShouldShowWindowTitle() const OVERRIDE; | 68 virtual bool ShouldShowWindowTitle() const OVERRIDE; |
| 68 virtual views::Widget* GetWidget() OVERRIDE; | 69 virtual views::Widget* GetWidget() OVERRIDE; |
| 69 virtual const views::Widget* GetWidget() const OVERRIDE; | 70 virtual const views::Widget* GetWidget() const OVERRIDE; |
| 70 | 71 |
| 71 // Overridden from HtmlDialogUIDelegate: | 72 // Overridden from HtmlDialogUIDelegate: |
| 72 virtual ui::ModalType GetDialogModalType() const OVERRIDE; | 73 virtual ui::ModalType GetDialogModalType() const OVERRIDE; |
| 73 virtual string16 GetDialogTitle() const OVERRIDE; | 74 virtual string16 GetDialogTitle() const OVERRIDE; |
| 74 virtual GURL GetDialogContentURL() const OVERRIDE; | 75 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 75 virtual void GetWebUIMessageHandlers( | 76 virtual void GetWebUIMessageHandlers( |
| 76 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; | 77 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 77 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 78 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 79 virtual void GetMinimumDialogSize(gfx::Size* size) const OVERRIDE; |
| 78 virtual std::string GetDialogArgs() const OVERRIDE; | 80 virtual std::string GetDialogArgs() const OVERRIDE; |
| 79 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 81 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 80 virtual void OnCloseContents(content::WebContents* source, | 82 virtual void OnCloseContents(content::WebContents* source, |
| 81 bool* out_close_dialog) OVERRIDE; | 83 bool* out_close_dialog) OVERRIDE; |
| 82 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 84 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 83 virtual bool HandleContextMenu( | 85 virtual bool HandleContextMenu( |
| 84 const content::ContextMenuParams& params) OVERRIDE; | 86 const content::ContextMenuParams& params) OVERRIDE; |
| 85 | 87 |
| 86 // Overridden from content::WebContentsDelegate: | 88 // Overridden from content::WebContentsDelegate: |
| 87 virtual void MoveContents(content::WebContents* source, | 89 virtual void MoveContents(content::WebContents* source, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // using this variable. | 127 // using this variable. |
| 126 HtmlDialogUIDelegate* delegate_; | 128 HtmlDialogUIDelegate* delegate_; |
| 127 | 129 |
| 128 // Controls lifetime of dialog. | 130 // Controls lifetime of dialog. |
| 129 scoped_ptr<HtmlDialogController> dialog_controller_; | 131 scoped_ptr<HtmlDialogController> dialog_controller_; |
| 130 | 132 |
| 131 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); | 133 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); |
| 132 }; | 134 }; |
| 133 | 135 |
| 134 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ | 136 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ |
| OLD | NEW |