OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 | 96 |
97 namespace WebKit { | 97 namespace WebKit { |
98 class WebGeolocationServiceInterfaceChromium; | 98 class WebGeolocationServiceInterfaceChromium; |
99 } | 99 } |
100 | 100 |
101 namespace WebKit { | 101 namespace WebKit { |
102 class WebAccessibilityCache; | 102 class WebAccessibilityCache; |
103 class WebDataSource; | 103 class WebDataSource; |
104 class WebDragData; | 104 class WebDragData; |
105 class WebImage; | |
106 class WebMediaPlayer; | 105 class WebMediaPlayer; |
107 class WebMediaPlayerClient; | 106 class WebMediaPlayerClient; |
108 class WebStorageNamespace; | 107 class WebStorageNamespace; |
109 class WebURLRequest; | 108 class WebURLRequest; |
110 struct WebFileChooserParams; | 109 struct WebFileChooserParams; |
111 struct WebFindOptions; | 110 struct WebFindOptions; |
112 struct WebPoint; | |
113 } | 111 } |
114 | 112 |
115 // We need to prevent a page from trying to create infinite popups. It is not | 113 // We need to prevent a page from trying to create infinite popups. It is not |
116 // as simple as keeping a count of the number of immediate children | 114 // as simple as keeping a count of the number of immediate children |
117 // popups. Having an html file that window.open()s itself would create | 115 // popups. Having an html file that window.open()s itself would create |
118 // an unlimited chain of RenderViews who only have one RenderView child. | 116 // an unlimited chain of RenderViews who only have one RenderView child. |
119 // | 117 // |
120 // Therefore, each new top level RenderView creates a new counter and shares it | 118 // Therefore, each new top level RenderView creates a new counter and shares it |
121 // with all its children and grandchildren popup RenderViews created with | 119 // with all its children and grandchildren popup RenderViews created with |
122 // createView() to have a sort of global limit for the page so no more than | 120 // createView() to have a sort of global limit for the page so no more than |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 virtual bool runModalBeforeUnloadDialog( | 241 virtual bool runModalBeforeUnloadDialog( |
244 WebKit::WebFrame* frame, const WebKit::WebString& message); | 242 WebKit::WebFrame* frame, const WebKit::WebString& message); |
245 virtual void showContextMenu( | 243 virtual void showContextMenu( |
246 WebKit::WebFrame* frame, const WebKit::WebContextMenuData& data); | 244 WebKit::WebFrame* frame, const WebKit::WebContextMenuData& data); |
247 virtual void setStatusText(const WebKit::WebString& text); | 245 virtual void setStatusText(const WebKit::WebString& text); |
248 virtual void setMouseOverURL(const WebKit::WebURL& url); | 246 virtual void setMouseOverURL(const WebKit::WebURL& url); |
249 virtual void setKeyboardFocusURL(const WebKit::WebURL& url); | 247 virtual void setKeyboardFocusURL(const WebKit::WebURL& url); |
250 virtual void setToolTipText( | 248 virtual void setToolTipText( |
251 const WebKit::WebString& text, WebKit::WebTextDirection hint); | 249 const WebKit::WebString& text, WebKit::WebTextDirection hint); |
252 virtual void startDragging( | 250 virtual void startDragging( |
253 const WebKit::WebDragData& data, | 251 const WebKit::WebPoint& from, const WebKit::WebDragData& data, |
254 WebKit::WebDragOperationsMask mask); | 252 WebKit::WebDragOperationsMask mask); |
255 virtual void startDragging( | |
256 const WebKit::WebDragData& data, | |
257 WebKit::WebDragOperationsMask mask, | |
258 const WebKit::WebImage& image, | |
259 const WebKit::WebPoint& imageOffset); | |
260 virtual bool acceptsLoadDrops(); | 253 virtual bool acceptsLoadDrops(); |
261 virtual void focusNext(); | 254 virtual void focusNext(); |
262 virtual void focusPrevious(); | 255 virtual void focusPrevious(); |
263 virtual void navigateBackForwardSoon(int offset); | 256 virtual void navigateBackForwardSoon(int offset); |
264 virtual int historyBackListCount(); | 257 virtual int historyBackListCount(); |
265 virtual int historyForwardListCount(); | 258 virtual int historyForwardListCount(); |
266 virtual void didAddHistoryItem(); | 259 virtual void didAddHistoryItem(); |
267 virtual void focusAccessibilityObject( | 260 virtual void focusAccessibilityObject( |
268 const WebKit::WebAccessibilityObject& acc_obj); | 261 const WebKit::WebAccessibilityObject& acc_obj); |
269 virtual void didChangeAccessibilityObjectState( | 262 virtual void didChangeAccessibilityObjectState( |
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1180 | 1173 |
1181 // Site isolation metrics flags. These are per-page-load counts, reset to 0 | 1174 // Site isolation metrics flags. These are per-page-load counts, reset to 0 |
1182 // in OnClosePage. | 1175 // in OnClosePage. |
1183 int cross_origin_access_count_; | 1176 int cross_origin_access_count_; |
1184 int same_origin_access_count_; | 1177 int same_origin_access_count_; |
1185 | 1178 |
1186 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1179 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1187 }; | 1180 }; |
1188 | 1181 |
1189 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1182 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |