| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_HTML_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual GURL GetDialogContentURL() const; | 61 virtual GURL GetDialogContentURL() const; |
| 62 virtual void GetDOMMessageHandlers( | 62 virtual void GetDOMMessageHandlers( |
| 63 std::vector<DOMMessageHandler*>* handlers) const; | 63 std::vector<DOMMessageHandler*>* handlers) const; |
| 64 virtual void GetDialogSize(gfx::Size* size) const; | 64 virtual void GetDialogSize(gfx::Size* size) const; |
| 65 virtual std::string GetDialogArgs() const; | 65 virtual std::string GetDialogArgs() const; |
| 66 virtual void OnDialogClosed(const std::string& json_retval); | 66 virtual void OnDialogClosed(const std::string& json_retval); |
| 67 | 67 |
| 68 // Overridden from TabContentsDelegate: | 68 // Overridden from TabContentsDelegate: |
| 69 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 69 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
| 70 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); | 70 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); |
| 71 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 // This view is a delegate to the HTML content since it needs to get notified | 74 // This view is a delegate to the HTML content since it needs to get notified |
| 74 // about when the dialog is closing. For all other actions (besides dialog | 75 // about when the dialog is closing. For all other actions (besides dialog |
| 75 // closing) we delegate to the creator of this view, which we keep track of | 76 // closing) we delegate to the creator of this view, which we keep track of |
| 76 // using this variable. | 77 // using this variable. |
| 77 HtmlDialogUIDelegate* delegate_; | 78 HtmlDialogUIDelegate* delegate_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); | 80 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ | 83 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ |
| OLD | NEW |