OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 class WebStorageNamespace; | 140 class WebStorageNamespace; |
141 class WebURLLoader; | 141 class WebURLLoader; |
142 class WebURLRequest; | 142 class WebURLRequest; |
143 class WebView; | 143 class WebView; |
144 struct WebContextMenuData; | 144 struct WebContextMenuData; |
145 struct WebFileChooserParams; | 145 struct WebFileChooserParams; |
146 struct WebFindOptions; | 146 struct WebFindOptions; |
147 struct WebMediaPlayerAction; | 147 struct WebMediaPlayerAction; |
148 struct WebPluginParams; | 148 struct WebPluginParams; |
149 struct WebPoint; | 149 struct WebPoint; |
150 struct WebRect; | |
150 struct WebWindowFeatures; | 151 struct WebWindowFeatures; |
151 } | 152 } |
152 | 153 |
153 // We need to prevent a page from trying to create infinite popups. It is not | 154 // We need to prevent a page from trying to create infinite popups. It is not |
154 // as simple as keeping a count of the number of immediate children | 155 // as simple as keeping a count of the number of immediate children |
155 // popups. Having an html file that window.open()s itself would create | 156 // popups. Having an html file that window.open()s itself would create |
156 // an unlimited chain of RenderViews who only have one RenderView child. | 157 // an unlimited chain of RenderViews who only have one RenderView child. |
157 // | 158 // |
158 // Therefore, each new top level RenderView creates a new counter and shares it | 159 // Therefore, each new top level RenderView creates a new counter and shares it |
159 // with all its children and grandchildren popup RenderViews created with | 160 // with all its children and grandchildren popup RenderViews created with |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
361 WebKit::WebFrame* creator, | 362 WebKit::WebFrame* creator, |
362 const WebKit::WebURLRequest& request, | 363 const WebKit::WebURLRequest& request, |
363 const WebKit::WebWindowFeatures& features, | 364 const WebKit::WebWindowFeatures& features, |
364 const WebKit::WebString& frame_name); | 365 const WebKit::WebString& frame_name); |
365 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); | 366 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); |
366 virtual WebKit::WebWidget* createPopupMenu( | 367 virtual WebKit::WebWidget* createPopupMenu( |
367 const WebKit::WebPopupMenuInfo& info); | 368 const WebKit::WebPopupMenuInfo& info); |
368 virtual WebKit::WebExternalPopupMenu* createExternalPopupMenu( | 369 virtual WebKit::WebExternalPopupMenu* createExternalPopupMenu( |
369 const WebKit::WebPopupMenuInfo& popup_menu_info, | 370 const WebKit::WebPopupMenuInfo& popup_menu_info, |
370 WebKit::WebExternalPopupMenuClient* popup_menu_client); | 371 WebKit::WebExternalPopupMenuClient* popup_menu_client); |
372 #if defined(TOUCH_UI) | |
373 // This is an implementation of a method in WebViewClient. | |
jam
2011/08/26 20:55:59
nit: this comment is redundant (line 359)
Fady Samuel
2011/08/29 18:27:36
Done.
| |
374 virtual WebKit::WebRect getDeviceRect() const; | |
375 #endif | |
371 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( | 376 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( |
372 unsigned quota); | 377 unsigned quota); |
373 virtual void didAddMessageToConsole( | 378 virtual void didAddMessageToConsole( |
374 const WebKit::WebConsoleMessage& message, | 379 const WebKit::WebConsoleMessage& message, |
375 const WebKit::WebString& source_name, | 380 const WebKit::WebString& source_name, |
376 unsigned source_line); | 381 unsigned source_line); |
377 virtual void printPage(WebKit::WebFrame* frame); | 382 virtual void printPage(WebKit::WebFrame* frame); |
378 virtual WebKit::WebNotificationPresenter* notificationPresenter(); | 383 virtual WebKit::WebNotificationPresenter* notificationPresenter(); |
379 virtual bool enumerateChosenDirectory( | 384 virtual bool enumerateChosenDirectory( |
380 const WebKit::WebString& path, | 385 const WebKit::WebString& path, |
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1238 // bunch of stuff, you should probably create a helper class and put your | 1243 // bunch of stuff, you should probably create a helper class and put your |
1239 // data and methods on that to avoid bloating RenderView more. You can use | 1244 // data and methods on that to avoid bloating RenderView more. You can use |
1240 // the Observer interface to filter IPC messages and receive frame change | 1245 // the Observer interface to filter IPC messages and receive frame change |
1241 // notifications. | 1246 // notifications. |
1242 // --------------------------------------------------------------------------- | 1247 // --------------------------------------------------------------------------- |
1243 | 1248 |
1244 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1249 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1245 }; | 1250 }; |
1246 | 1251 |
1247 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1252 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |