| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const gfx::Rect& initial_rect, | 109 const gfx::Rect& initial_rect, |
| 110 bool user_gesture, | 110 bool user_gesture, |
| 111 bool* was_blocked) override; | 111 bool* was_blocked) override; |
| 112 void LoadingStateChanged(content::WebContents* source, | 112 void LoadingStateChanged(content::WebContents* source, |
| 113 bool to_different_document) override; | 113 bool to_different_document) override; |
| 114 void BeforeUnloadFired(content::WebContents* tab, | 114 void BeforeUnloadFired(content::WebContents* tab, |
| 115 bool proceed, | 115 bool proceed, |
| 116 bool* proceed_to_fire_unload) override; | 116 bool* proceed_to_fire_unload) override; |
| 117 bool ShouldCreateWebContents( | 117 bool ShouldCreateWebContents( |
| 118 content::WebContents* web_contents, | 118 content::WebContents* web_contents, |
| 119 content::SiteInstance* source_site_instance, |
| 119 int32_t route_id, | 120 int32_t route_id, |
| 120 int32_t main_frame_route_id, | 121 int32_t main_frame_route_id, |
| 121 int32_t main_frame_widget_route_id, | 122 int32_t main_frame_widget_route_id, |
| 122 WindowContainerType window_container_type, | 123 WindowContainerType window_container_type, |
| 124 const GURL& opener_url, |
| 123 const std::string& frame_name, | 125 const std::string& frame_name, |
| 124 const GURL& target_url, | 126 const GURL& target_url, |
| 125 const std::string& partition_id, | 127 const std::string& partition_id, |
| 126 content::SessionStorageNamespace* session_storage_namespace) override; | 128 content::SessionStorageNamespace* session_storage_namespace) override; |
| 127 | 129 |
| 128 private: | 130 private: |
| 129 FRIEND_TEST_ALL_PREFIXES(WebDialogBrowserTest, WebContentRendered); | 131 FRIEND_TEST_ALL_PREFIXES(WebDialogBrowserTest, WebContentRendered); |
| 130 | 132 |
| 131 // Initializes the contents of the dialog. | 133 // Initializes the contents of the dialog. |
| 132 void InitDialog(); | 134 void InitDialog(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 156 | 158 |
| 157 // Whether CloseContents() has been called. | 159 // Whether CloseContents() has been called. |
| 158 bool close_contents_called_; | 160 bool close_contents_called_; |
| 159 | 161 |
| 160 DISALLOW_COPY_AND_ASSIGN(WebDialogView); | 162 DISALLOW_COPY_AND_ASSIGN(WebDialogView); |
| 161 }; | 163 }; |
| 162 | 164 |
| 163 } // namespace views | 165 } // namespace views |
| 164 | 166 |
| 165 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ | 167 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ |
| OLD | NEW |