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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 class RenderViewObserver; | 162 class RenderViewObserver; |
163 class RenderViewTest; | 163 class RenderViewTest; |
164 class RendererAccessibility; | 164 class RendererAccessibility; |
165 class RendererDateTimePicker; | 165 class RendererDateTimePicker; |
166 class RendererPpapiHost; | 166 class RendererPpapiHost; |
167 class RendererWebColorChooserImpl; | 167 class RendererWebColorChooserImpl; |
168 class RenderWidgetFullscreenPepper; | 168 class RenderWidgetFullscreenPepper; |
169 class SpeechRecognitionDispatcher; | 169 class SpeechRecognitionDispatcher; |
170 class WebPluginDelegateProxy; | 170 class WebPluginDelegateProxy; |
171 struct CustomContextMenuContext; | 171 struct CustomContextMenuContext; |
| 172 struct FaviconURL; |
172 struct FileChooserParams; | 173 struct FileChooserParams; |
173 struct RenderViewImplParams; | 174 struct RenderViewImplParams; |
174 | 175 |
175 #if defined(OS_ANDROID) | 176 #if defined(OS_ANDROID) |
176 class WebMediaPlayerProxyImplAndroid; | 177 class WebMediaPlayerProxyImplAndroid; |
177 #endif | 178 #endif |
178 | 179 |
179 // We need to prevent a page from trying to create infinite popups. It is not | 180 // We need to prevent a page from trying to create infinite popups. It is not |
180 // as simple as keeping a count of the number of immediate children | 181 // as simple as keeping a count of the number of immediate children |
181 // popups. Having an html file that window.open()s itself would create | 182 // popups. Having an html file that window.open()s itself would create |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 1180 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
1180 void UpdateFontRenderingFromRendererPrefs(); | 1181 void UpdateFontRenderingFromRendererPrefs(); |
1181 #else | 1182 #else |
1182 void UpdateFontRenderingFromRendererPrefs() {} | 1183 void UpdateFontRenderingFromRendererPrefs() {} |
1183 #endif | 1184 #endif |
1184 | 1185 |
1185 // Update the target url and tell the browser that the target URL has changed. | 1186 // Update the target url and tell the browser that the target URL has changed. |
1186 // If |url| is empty, show |fallback_url|. | 1187 // If |url| is empty, show |fallback_url|. |
1187 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); | 1188 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); |
1188 | 1189 |
| 1190 // Tells the browser what the new list of favicons for the webpage is. |
| 1191 void SendUpdateFaviconURL(const std::vector<FaviconURL>& urls); |
| 1192 |
| 1193 // Invoked from DidStopLoading(). Sends the current list of loaded favicons to |
| 1194 // the browser. |
| 1195 void DidStopLoadingIcons(); |
| 1196 |
1189 // Coordinate conversion ----------------------------------------------------- | 1197 // Coordinate conversion ----------------------------------------------------- |
1190 | 1198 |
1191 gfx::RectF ClientRectToPhysicalWindowRect(const gfx::RectF& rect) const; | 1199 gfx::RectF ClientRectToPhysicalWindowRect(const gfx::RectF& rect) const; |
1192 | 1200 |
1193 // --------------------------------------------------------------------------- | 1201 // --------------------------------------------------------------------------- |
1194 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put | 1202 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put |
1195 // it in the same order in the .cc file as it was in the header. | 1203 // it in the same order in the .cc file as it was in the header. |
1196 // --------------------------------------------------------------------------- | 1204 // --------------------------------------------------------------------------- |
1197 | 1205 |
1198 // Settings ------------------------------------------------------------------ | 1206 // Settings ------------------------------------------------------------------ |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1411 // Only valid if |accessibility_mode_| is anything other than | 1419 // Only valid if |accessibility_mode_| is anything other than |
1412 // AccessibilityModeOff. | 1420 // AccessibilityModeOff. |
1413 RendererAccessibility* renderer_accessibility_; | 1421 RendererAccessibility* renderer_accessibility_; |
1414 | 1422 |
1415 // Java Bridge dispatcher attached to this view; lazily initialized. | 1423 // Java Bridge dispatcher attached to this view; lazily initialized. |
1416 JavaBridgeDispatcher* java_bridge_dispatcher_; | 1424 JavaBridgeDispatcher* java_bridge_dispatcher_; |
1417 | 1425 |
1418 // Mouse Lock dispatcher attached to this view. | 1426 // Mouse Lock dispatcher attached to this view. |
1419 MouseLockDispatcher* mouse_lock_dispatcher_; | 1427 MouseLockDispatcher* mouse_lock_dispatcher_; |
1420 | 1428 |
1421 // Helper class to handle favicon changes. | |
1422 FaviconHelper* favicon_helper_; | |
1423 | |
1424 #if defined(OS_ANDROID) | 1429 #if defined(OS_ANDROID) |
1425 // Android Specific --------------------------------------------------------- | 1430 // Android Specific --------------------------------------------------------- |
1426 | 1431 |
1427 // The background color of the document body element. This is used as the | 1432 // The background color of the document body element. This is used as the |
1428 // default background color for filling the screen areas for which we don't | 1433 // default background color for filling the screen areas for which we don't |
1429 // have the actual content. | 1434 // have the actual content. |
1430 SkColor body_background_color_; | 1435 SkColor body_background_color_; |
1431 | 1436 |
1432 // True if SendUpdateFrameInfo is pending. | 1437 // True if SendUpdateFrameInfo is pending. |
1433 bool update_frame_info_scheduled_; | 1438 bool update_frame_info_scheduled_; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1576 // use the Observer interface to filter IPC messages and receive frame change | 1581 // use the Observer interface to filter IPC messages and receive frame change |
1577 // notifications. | 1582 // notifications. |
1578 // --------------------------------------------------------------------------- | 1583 // --------------------------------------------------------------------------- |
1579 | 1584 |
1580 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1585 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1581 }; | 1586 }; |
1582 | 1587 |
1583 } // namespace content | 1588 } // namespace content |
1584 | 1589 |
1585 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1590 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |