| 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 UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ |
| 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // Overridden from content::WebContentsDelegate: | 95 // Overridden from content::WebContentsDelegate: |
| 96 virtual void MoveContents(content::WebContents* source, | 96 virtual void MoveContents(content::WebContents* source, |
| 97 const gfx::Rect& pos) OVERRIDE; | 97 const gfx::Rect& pos) OVERRIDE; |
| 98 virtual void HandleKeyboardEvent( | 98 virtual void HandleKeyboardEvent( |
| 99 content::WebContents* source, | 99 content::WebContents* source, |
| 100 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 100 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 101 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 101 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| 102 virtual content::WebContents* OpenURLFromTab( | 102 virtual content::WebContents* OpenURLFromTab( |
| 103 content::WebContents* source, | 103 content::WebContents* source, |
| 104 const content::OpenURLParams& params) OVERRIDE; | 104 const content::OpenURLParams& params) OVERRIDE; |
| 105 virtual void AddNewContents(content::WebContents* source, | 105 virtual bool AddNewContents(content::WebContents* source, |
| 106 content::WebContents* new_contents, | 106 content::WebContents* new_contents, |
| 107 WindowOpenDisposition disposition, | 107 WindowOpenDisposition disposition, |
| 108 const gfx::Rect& initial_pos, | 108 const gfx::Rect& initial_pos, |
| 109 bool user_gesture) OVERRIDE; | 109 bool user_gesture) OVERRIDE; |
| 110 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; | 110 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 FRIEND_TEST_ALL_PREFIXES(WebDialogBrowserTest, WebContentRendered); | 113 FRIEND_TEST_ALL_PREFIXES(WebDialogBrowserTest, WebContentRendered); |
| 114 | 114 |
| 115 // Initializes the contents of the dialog. | 115 // Initializes the contents of the dialog. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 127 ui::WebDialogDelegate* delegate_; | 127 ui::WebDialogDelegate* delegate_; |
| 128 | 128 |
| 129 views::WebView* web_view_; | 129 views::WebView* web_view_; |
| 130 | 130 |
| 131 DISALLOW_COPY_AND_ASSIGN(WebDialogView); | 131 DISALLOW_COPY_AND_ASSIGN(WebDialogView); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace views | 134 } // namespace views |
| 135 | 135 |
| 136 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ | 136 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ |
| OLD | NEW |