Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: ui/views/controls/webview/web_dialog_view.h

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plumb through surface ID *and* widget surface ID for window.open Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const gfx::Rect& initial_rect, 106 const gfx::Rect& initial_rect,
107 bool user_gesture, 107 bool user_gesture,
108 bool* was_blocked) override; 108 bool* was_blocked) override;
109 void LoadingStateChanged(content::WebContents* source, 109 void LoadingStateChanged(content::WebContents* source,
110 bool to_different_document) override; 110 bool to_different_document) override;
111 void BeforeUnloadFired(content::WebContents* tab, 111 void BeforeUnloadFired(content::WebContents* tab,
112 bool proceed, 112 bool proceed,
113 bool* proceed_to_fire_unload) override; 113 bool* proceed_to_fire_unload) override;
114 bool ShouldCreateWebContents( 114 bool ShouldCreateWebContents(
115 content::WebContents* web_contents, 115 content::WebContents* web_contents,
116 int route_id, 116 int32 route_id,
117 int main_frame_route_id, 117 int32 main_frame_route_id,
118 int32 main_frame_widget_route_id,
119 int32 surface_id,
118 WindowContainerType window_container_type, 120 WindowContainerType window_container_type,
119 const std::string& frame_name, 121 const std::string& frame_name,
120 const GURL& target_url, 122 const GURL& target_url,
121 const std::string& partition_id, 123 const std::string& partition_id,
122 content::SessionStorageNamespace* session_storage_namespace) override; 124 content::SessionStorageNamespace* session_storage_namespace) override;
123 125
124 private: 126 private:
125 FRIEND_TEST_ALL_PREFIXES(WebDialogBrowserTest, WebContentRendered); 127 FRIEND_TEST_ALL_PREFIXES(WebDialogBrowserTest, WebContentRendered);
126 128
127 // Initializes the contents of the dialog. 129 // Initializes the contents of the dialog.
(...skipping 24 matching lines...) Expand all
152 154
153 // Whether CloseContents() has been called. 155 // Whether CloseContents() has been called.
154 bool close_contents_called_; 156 bool close_contents_called_;
155 157
156 DISALLOW_COPY_AND_ASSIGN(WebDialogView); 158 DISALLOW_COPY_AND_ASSIGN(WebDialogView);
157 }; 159 };
158 160
159 } // namespace views 161 } // namespace views
160 162
161 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ 163 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698